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)

public override void OnAddingToContentType(
	SPContentType contentType
)

Parameters

contentType
Type: Microsoft.SharePoint.SPContentType

A SPContentType object that represents the content type.

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.

Show: