共用方式為


SPField.OnAddingToContentType method

會處理欄位新增至指定的內容類型時,就會發生的事件。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Overridable Sub OnAddingToContentType ( _
    contentType As SPContentType _
)
'用途
Dim instance As SPField
Dim contentType As SPContentType

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

參數

備註

衍生類別中使用此方法,以提供自訂邏輯,將欄位新增至內容類型時。

請參閱

參照

SPField class

SPField members

Microsoft.SharePoint namespace