Click or drag to resize

MagicWordCollection Class

This is preliminary documentation and is subject to change.

Provides read-only access to MediaWiki magic words collection.
Inheritance Hierarchy
SystemObject
  System.Collections.ObjectModelReadOnlyCollectionMagicWordInfo
    WikiClientLibrary.SitesMagicWordCollection

Namespace: WikiClientLibrary.Sites
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public class MagicWordCollection : ReadOnlyCollection<MagicWordInfo>

The MagicWordCollection type exposes the following members.

Properties
 NameDescription
Public propertyCountGets the number of elements contained in the ReadOnlyCollectionT instance.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Public propertyItemInt32Gets the element at the specified index.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Public propertyItemString Gets the magic word with specified name (magic word ID). The match is case-sensitive.
Protected propertyItemsReturns the IListT that the ReadOnlyCollectionT wraps.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Top
Methods
 NameDescription
Public methodContainsDetermines whether an element is in the ReadOnlyCollectionT.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Public methodContainsAlias Determines whether there's a magic word with specified alias (wikitext).
Public methodContainsName Determines whether there's a magic word with specified name (magic word ID). The match is case-sensitive.
Public methodCopyToCopies the entire ReadOnlyCollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from ReadOnlyCollectionMagicWordInfo)
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 ReadOnlyCollectionT.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIndexOfSearches for the specified object and returns the zero-based index of the first occurrence within the entire ReadOnlyCollectionT.
(Inherited from ReadOnlyCollectionMagicWordInfo)
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 methodTryGet Tries to lookup a magic word by name (magic word ID) in the collection. The match is case-sensitive.
Public methodTryGetByAlias Tries to lookup a magic word by alias (wikitext) in the collection.
Top
Explicit Interface Implementations
 NameDescription
Explicit interface implementationPrivate methodICollectionTAddAdds an item to the ICollectionT. This implementation always throws NotSupportedException.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate methodIListAddAdds an item to the IList. This implementation always throws NotSupportedException.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate methodICollectionTClearRemoves all items from the ICollectionT. This implementation always throws NotSupportedException.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate methodIListClearRemoves all items from the IList. This implementation always throws NotSupportedException.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate methodIListContainsDetermines whether the IList contains a specific value.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate methodICollectionCopyToCopies the elements of the ICollection to an Array, starting at a particular Array index.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate methodIEnumerableGetEnumeratorReturns an enumerator that iterates through a collection.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate methodIListIndexOfDetermines the index of a specific item in the IList.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate methodIListTInsertInserts an item to the IListT at the specified index. This implementation always throws NotSupportedException.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate methodIListInsertInserts an item to the IList at the specified index. This implementation always throws NotSupportedException.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate propertyIListIsFixedSizeGets a value indicating whether the IList has a fixed size.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate propertyICollectionTIsReadOnlyGets a value indicating whether the ICollectionT is read-only.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate propertyIListIsReadOnlyGets a value indicating whether the IList is read-only.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate propertyICollectionIsSynchronizedGets a value indicating whether access to the ICollection is synchronized (thread safe).
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate propertyIListTItemGets the element at the specified index. An NotSupportedException occurs if you try to set the item at the specified index.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate propertyIListItemGets the element at the specified index. A NotSupportedException occurs if you try to set the item at the specified index.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate methodICollectionTRemoveRemoves the first occurrence of a specific object from the ICollectionT. This implementation always throws NotSupportedException.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate methodIListRemoveRemoves the first occurrence of a specific object from the IList. This implementation always throws NotSupportedException.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate methodIListTRemoveAtRemoves the IListT item at the specified index. This implementation always throws NotSupportedException.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate methodIListRemoveAtRemoves the IList item at the specified index. This implementation always throws NotSupportedException.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Explicit interface implementationPrivate propertyICollectionSyncRootGets an object that can be used to synchronize access to the ICollection.
(Inherited from ReadOnlyCollectionMagicWordInfo)
Top
Remarks
See Also