Compartilhar via


TaxonomyField.OnAddingToContentType Method

Occurs when a TaxonomyField object is added to a specified content type.

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

Syntax

'Declaration
Public Overrides Sub OnAddingToContentType ( _
    contentType As SPContentType _
)
'Usage
Dim instance As TaxonomyField
Dim contentType As SPContentType

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

Parameters

Remarks

If the contentType parameter is a null reference (Nothing in Visual Basic), or its FieldLinks property is null, or its ParentWeb object has no available fields, this method has no effect.

See Also

Reference

TaxonomyField Class

TaxonomyField Members

Microsoft.SharePoint.Taxonomy Namespace

OnAddingToContentType(SPContentType)

SPContentType

Microsoft.SharePoint