Share via


ContextCollection Members

Include Protected Members
Include Inherited Members

Represents a collection of contexts.

The ContextCollection type exposes the following members.

Properties

  Name Description
Public property Count (Inherited from ICollection<Context>.)
Public property IsReadOnly (Inherited from ICollection<Context>.)
Public property Item Retrieves the context with the specified name.

Top

Methods

  Name Description
Public method Add (Inherited from ICollection<Context>.)
Public method AddContext(String) Adds a context with the specified name to the collection.
Public method AddContext(String, String) Adds a context with the specified name and description to the collection.
Public method Clear (Inherited from ICollection<Context>.)
Public method Contains (Inherited from ICollection<Context>.)
Public method ContainsContext Checks if the context with the specified name is contained in the collection.
Public method CopyTo (Inherited from ICollection<Context>.)
Public method GetContext Retrieves the context with the specified name.
Public method GetEnumerator() (Inherited from IEnumerable<Context>.)
Public method GetEnumerator() (Inherited from IEnumerable.)
Public method GetEnumerator(ContextSortField) Retrieves an enumerator for all the contexts in the collection, sorting on the specified field in ascending order.
Public method GetEnumerator(Int32, Int32) Retrieves an enumerator for the specified subset of contexts in the collection, sorting on context name in ascending order.
Public method GetEnumerator(ContextSortField, SortDirection) Retrieves an enumerator for all the contexts in the collection, sorting on the specified field in the specified direction.
Public method GetEnumerator(ContextSortField, SortDirection, Int32, Int32) Retrieves an enumerator for a subset of the the contexts in the collection, sorting on the specified field in the specified direction.
Public method Remove (Inherited from ICollection<Context>.)
Public method RemoveContext Removes the context with the specified context name from the collection.

Top

See Also

Reference

ContextCollection Interface

Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace