Share via


PublishingCatalogUtility.GetPublishingCatalog method (SPSite, String, Guid)

Retrieves a shared catalog that is available for subscription.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Shared Function GetPublishingCatalog ( _
    site As SPSite, _
    catalogSitePath As String, _
    catalogId As Guid _
) As CatalogConnectionSettings
'Usage
Dim site As SPSite
Dim catalogSitePath As String
Dim catalogId As Guid
Dim returnValue As CatalogConnectionSettings

returnValue = PublishingCatalogUtility.GetPublishingCatalog(site, _
    catalogSitePath, catalogId)
public static CatalogConnectionSettings GetPublishingCatalog(
    SPSite site,
    string catalogSitePath,
    Guid catalogId
)

Parameters

  • catalogSitePath
    Type: System.String

    The absolute URL of the site collection that contains the catalog.

  • catalogId
    Type: System.Guid

    The ID of the SPList object that is shared as a catalog.

Return value

Type: Microsoft.SharePoint.Publishing.CatalogConnectionSettings
A shared catalog that is available for subscription.

See also

Reference

PublishingCatalogUtility class

PublishingCatalogUtility members

GetPublishingCatalog overload

Microsoft.SharePoint.Publishing namespace