PublishingCatalogUtility.PublishCatalog method (SPWeb, SPList, Boolean)
Shares (publishes) a list or library as a publishing catalog for subscription at another site.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Shared Sub PublishCatalog ( _
parentWeb As SPWeb, _
list As SPList, _
allowAnonymousAccess As Boolean _
)
'Usage
Dim parentWeb As SPWeb
Dim list As SPList
Dim allowAnonymousAccess As BooleanPublishingCatalogUtility.PublishCatalog(parentWeb, list, _
allowAnonymousAccess)
public static void PublishCatalog(
SPWeb parentWeb,
SPList list,
bool allowAnonymousAccess
)
Parameters
parentWeb
Type: Microsoft.SharePoint.SPWebParent web containing the list or library being shared.
list
Type: Microsoft.SharePoint.SPListList or library being shared.
allowAnonymousAccess
Type: System.BooleanWhether the content of this catalog is anonymously accessible from the search service. Setting this property to true does not affect access to the list by using a content database that uses CAML queries.
See also
Reference
PublishingCatalogUtility class