SPField.OnDeletingFromContentType 方法
处理从指定的内容类型中删除字段时发生的事件。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Overridable Sub OnDeletingFromContentType ( _
contentType As SPContentType _
)
用法
Dim instance As SPField
Dim contentType As SPContentType
instance.OnDeletingFromContentType(contentType)
public virtual void OnDeletingFromContentType(
SPContentType contentType
)
参数
contentType
类型:Microsoft.SharePoint.SPContentType内容类型从其删除该字段。
备注
在派生类中使用此方法可从内容类型中删除域之前,添加自定义逻辑。