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:
© 2014 Microsoft