Compartilhar via


ContentTypePublisher Constructor

Initializes a new instance of the ContentTypePublisher class for the provided hub site (SPSite).

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

Syntax

'Declaration
Public Sub New ( _
    hubSite As SPSite _
)
'Usage
Dim hubSite As SPSite

Dim instance As New ContentTypePublisher(hubSite)
public ContentTypePublisher(
    SPSite hubSite
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The hubSite is a null reference (Nothing in Visual Basic) or its root web is a null reference (Nothing in Visual Basic)

ArgumentException

The site is not a valid hub because the MetadataHub feature is not enabled for it.

See Also

Reference

ContentTypePublisher Class

ContentTypePublisher Members

Microsoft.SharePoint.Taxonomy.ContentTypeSync Namespace