| Entity(WikiSite, EntityType) Constructor |
This is preliminary documentation and is subject to change.
Initializes a new
Entity entity from Wikibase site,
marked for creation.
Namespace: WikiClientLibrary.WikibaseAssembly: WikiClientLibrary.Wikibase (in WikiClientLibrary.Wikibase.dll) Version: 0.8.0+bba8b7a48c3412988f4331f41f4164c670d73663
Syntax public Entity(
WikiSite site,
EntityType type
)
Public Sub New (
site As WikiSite,
type As EntityType
)
Dim site As WikiSite
Dim type As EntityType
Dim instance As New Entity(site, type)
public:
Entity(
WikiSite^ site,
EntityType type
)
new :
site : WikiSite *
type : EntityType -> Entity
Parameters
- site WikiSite
- Wikibase site.
- type EntityType
- Type of the new entity.
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | type is neither
Item nor Property. |
ArgumentNullException | Either site is null. |
See Also