SPFieldIndexCollection.Delete Method
Deletes an SPFieldIndex object.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Sub Delete ( _
uniqueId As Guid _
)
'Usage
Dim instance As SPFieldIndexCollection
Dim uniqueId As Guid
instance.Delete(uniqueId)
public void Delete(
Guid uniqueId
)
Parameters
uniqueId
Type: System.GuidThe GUID of the SPFieldIndex object to delete.
Exceptions
Exception | Condition |
---|---|
ArgumentException | uniqueId is Guid.Empty or does not refer to an item in the collection. |