Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SPField.Delete method

Deletes the field.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[ClientCallableExceptionConstraintAttribute(FixedId = "3", ErrorType = typeof(InvalidOperationException), 
	Condition = "The field cannot be deleted because it does not allow deletion.")]
[ClientCallableMethodAttribute(Name = "DeleteObject", RemoveThisObjectFromParentCollection = true)]
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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.