Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Deletes the field.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub Delete
'Usage
Dim instance As SPField
instance.Delete()
public void Delete()
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The field cannot be found. |
| InvalidOperationException | The field cannot be deleted. |
| SPException | The field collection containing this field is read-only. |
Remarks
This method calls the Delete(String) method to delete the field.