PublishingCatalogUtility.GetPublishingCatalog method (SPSite, String)
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, _
catalogPath As String _
) As CatalogConnectionSettings
'Usage
Dim site As SPSite
Dim catalogPath As String
Dim returnValue As CatalogConnectionSettings
returnValue = PublishingCatalogUtility.GetPublishingCatalog(site, _
catalogPath)
public static CatalogConnectionSettings GetPublishingCatalog(
SPSite site,
string catalogPath
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteA site collection that is requesting shared catalog information from search.
catalogPath
Type: System.StringThe absolute URL of the shared catalog.
Return value
Type: Microsoft.SharePoint.Publishing.CatalogConnectionSettings
A shared catalog that is available for subscription.
See also
Reference
PublishingCatalogUtility class