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
contentType
Type: Microsoft.SharePoint.SPContentTypeThe content type to be checked. The content type should be on the root Web of the hub site.
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. |