다음을 통해 공유


SPField.OnDeletingFromContentType Method

Handles the event that occurs when a field is deleted from a specified content type.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Overridable Sub OnDeletingFromContentType ( _
    contentType As SPContentType _
)
'Usage
Dim instance As SPField
Dim contentType As SPContentType

instance.OnDeletingFromContentType(contentType)
public virtual void OnDeletingFromContentType(
    SPContentType contentType
)

Parameters

Remarks

Use this method in a derived class to add custom logic before deleting a field from a content type.

See Also

Reference

SPField Class

SPField Members

Microsoft.SharePoint Namespace