Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPField.Delete method

Deletes the field.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public void Delete()

ExceptionCondition
ArgumentException

The field cannot be found.

InvalidOperationException

The field cannot be deleted.

SPException

The field collection containing this field is read-only.

This method calls the Delete(String) method to delete the field.

Show:
© 2015 Microsoft