SPField.Delete method

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.

See also

Reference

SPField class

SPField members

Microsoft.SharePoint namespace