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
contentType
Type: Microsoft.SharePoint.SPContentTypeA SPContentType object that represents the content type.
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
Microsoft.SharePoint.Taxonomy Namespace