SPFieldIndexCollection members

Represents a collection of SPFieldIndex objects.

The SPFieldIndexCollection type exposes the following members.

Properties

  Name Description
Public propertyStatic member Capacity Gets a value that is the maximum number of SPFieldIndex objects that the collection can contain.
Public property Count Gets the number of SPFieldIndex objects in the SPFieldIndexCollection. (Overrides SPBaseCollection.Count.)
Public property Item[Guid] Gets the SPFieldIndex object with the specified GUID in the SPFieldIndexCollection.
Public property Item[Int32] Gets the SPFieldIndex object with the specified index in the SPFieldIndexCollection.

Top

Methods

  Name Description
Public method Add(SPField) Adds an index definition to the collection. This method includes one specified field in the index definition.
Public method Add(SPField, SPField) Adds an index definition to the collection. This method includes two specified fields in the index definition.
Public method CopyTo .NET Framework 4Copies the elements of the field index collection to an array, starting at the specified index.
Public method Delete Deletes an SPFieldIndex object.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Gets an enumerator to iterate through the collection. (Inherited from SPBaseCollection.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GetTypedEnumerator<T> Returns a type-safe enumerator to iterate through the collection. (Inherited from SPBaseCollection.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method ICollection.CopyTo Copies the elements of the collection to an array, starting at the specified array index. (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe. (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.SyncRoot Gets an object that is used to synchronize access to the collection. (Inherited from SPBaseCollection.)

Top

See also

Reference

SPFieldIndexCollection class

Microsoft.SharePoint namespace