| Snak(Entity, Object) Constructor |
This is preliminary documentation and is subject to change.
Initializes a snak with specified property and data value.
Namespace: WikiClientLibrary.WikibaseAssembly: WikiClientLibrary.Wikibase (in WikiClientLibrary.Wikibase.dll) Version: 0.8.0+bba8b7a48c3412988f4331f41f4164c670d73663
Syntax public Snak(
Entity property,
Object dataValue
)
Public Sub New (
property As Entity,
dataValue As Object
)
Dim property As Entity
Dim dataValue As Object
Dim instance As New Snak(property,
dataValue)
public:
Snak(
Entity^ property,
Object^ dataValue
)
new :
property : Entity *
dataValue : Object -> Snak
Parameters
- property Entity
- The property. It should have valid Id and DataType.
- dataValue Object
- The data value of the property.
Exceptions Exception | Condition |
---|
ArgumentNullException | property is null. |
ArgumentException | property is not Wikibase property, or does not contain required information. |
See Also