Compartilhar via


ContentTypePublisher.IsPublished Method

Indicates if the content type is published.

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

Syntax

'Declaration
Public Function IsPublished ( _
    contentType As SPContentType _
) As Boolean
'Usage
Dim instance As ContentTypePublisher
Dim contentType As SPContentType
Dim returnValue As Boolean

returnValue = instance.IsPublished(contentType)
public bool IsPublished(
    SPContentType contentType
)

Parameters

Return Value

Type: System.Boolean
true if content type is published on one or more associated service applications; false if the content type is not published on any associated service applications

Exceptions

Exception Condition
UnauthorizedAccessException

The user must have rights to add or customize pages to be able to perform this operation.

See Also

Reference

ContentTypePublisher Class

ContentTypePublisher Members

Microsoft.SharePoint.Taxonomy.ContentTypeSync Namespace