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

  • allowAnonymousAccess
    Type: System.Boolean

    Whether 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

PublishingCatalogUtility members

PublishCatalog overload

Microsoft.SharePoint.Publishing namespace