Click or drag to resize

WbMonolingualTextCollection Class

This is preliminary documentation and is subject to change.

Provides convenient access to 1:1 language-text pairs of multilingual text.
Inheritance Hierarchy
SystemObject
  WikiClientLibrary.Wikibase.DataTypesWbMonolingualTextCollection

Namespace: WikiClientLibrary.Wikibase.DataTypes
Assembly: WikiClientLibrary.Wikibase (in WikiClientLibrary.Wikibase.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public class WbMonolingualTextCollection : ICollection<WbMonolingualText>, 
	IEnumerable<WbMonolingualText>, IEnumerable

The WbMonolingualTextCollection type exposes the following members.

Constructors
 NameDescription
Public methodWbMonolingualTextCollectionInitializes a new instance of the WbMonolingualTextCollection class
Public methodWbMonolingualTextCollection(IEnumerableWbMonolingualText)Initializes a new instance of the WbMonolingualTextCollection class
Top
Properties
 NameDescription
Public propertyCountGets the number of elements contained in the ICollectionT.
Public propertyIsReadOnlyGets a value indicating whether the ICollectionT is read-only.
Public propertyItem Gets/sets the associated text to the specified language.
Top
Methods
 NameDescription
Public methodAdd(WbMonolingualText)Adds an item to the ICollectionT.
Public methodAdd(String, String) 
Public methodClearRemoves all items from the ICollectionT.
Public methodContainsLanguage 
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetEnumeratorReturns an enumerator that iterates through the collection.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRemove 
Public methodSet Adds or updates a WbMonolingualText item by language code.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryGetMonolingualText Tries to get the WbMonolingualText associated with the specified language.
Top
Explicit Interface Implementations
 NameDescription
Explicit interface implementationPrivate methodICollectionWbMonolingualTextContainsDetermines whether the ICollectionT contains a specific value.
Explicit interface implementationPrivate methodICollectionWbMonolingualTextCopyToCopies the elements of the ICollectionT to an Array, starting at a particular Array index.
Explicit interface implementationPrivate methodICollectionWbMonolingualTextRemoveRemoves the first occurrence of a specific object from the ICollectionT.
Explicit interface implementationPrivate methodIEnumerableGetEnumeratorReturns an enumerator that iterates through a collection.
Top
Remarks
All the language codes are normalized to lower-case and are case-insensitive.
See Also