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
site
Type: Microsoft.SharePoint.SPSiteThe site collection that is requesting shared catalog information from search.
catalogSitePath
Type: System.StringThe absolute URL of the site collection that contains the catalog.
catalogId
Type: System.GuidThe 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