Click or drag to resize

NamespaceCollection Class

This is preliminary documentation and is subject to change.

Provides read-only access to namespace collection.
Inheritance Hierarchy
SystemObject
  WikiClientLibrary.SitesNamespaceCollection

Namespace: WikiClientLibrary.Sites
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public class NamespaceCollection : ICollection<NamespaceInfo>, 
	IEnumerable<NamespaceInfo>, IEnumerable

The NamespaceCollection type exposes the following members.

Properties
 NameDescription
Public propertyCountGets the number of elements contained in the ICollectionT.
Public propertyItemInt32 Get the namespace info with specified namespace id.
Public propertyItemString Get the namespace info with specified namespace name or alias.
Top
Methods
 NameDescription
Public methodContains(Int32) 
Public methodContains(String) 
Public methodCopyToCopies the elements of the ICollectionT to an Array, starting at a particular Array index.
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 methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryGetValue(Int32, NamespaceInfo) Tries to get the namespace info with specified namespace id.
Public methodTryGetValue(String, NamespaceInfo) Tries to get the namespace info with specified namespace name.
Top
Explicit Interface Implementations
 NameDescription
Explicit interface implementationPrivate methodICollectionNamespaceInfoAddAdds an item to the ICollectionT.
Explicit interface implementationPrivate methodICollectionNamespaceInfoClearRemoves all items from the ICollectionT.
Explicit interface implementationPrivate methodICollectionNamespaceInfoContainsDetermines whether the ICollectionT contains a specific value.
Explicit interface implementationPrivate propertyICollectionNamespaceInfoIsReadOnlyGets a value indicating whether the ICollectionT is read-only.
Explicit interface implementationPrivate methodICollectionNamespaceInfoRemoveRemoves the first occurrence of a specific object from the ICollectionT.
Explicit interface implementationPrivate methodIEnumerableGetEnumeratorReturns an enumerator that iterates through a collection.
Top
Remarks
Note the namespace name is case-insensitive.
See Also