PublishingCatalogUtility.PublishCatalog method (SPWeb, SPList, Nullable<Boolean>, IEnumerable<String>, IEnumerable<CatalogTaxonomyFieldSettings>)
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 Nullable(Of Boolean), _
furlFields As IEnumerable(Of String), _
taxFields As IEnumerable(Of CatalogTaxonomyFieldSettings) _
)
'Usage
Dim parentWeb As SPWeb
Dim list As SPList
Dim allowAnonymousAccess As Nullable(Of Boolean)
Dim furlFields As IEnumerable(Of String)
Dim taxFields As IEnumerable(Of CatalogTaxonomyFieldSettings)
PublishingCatalogUtility.PublishCatalog(parentWeb, list, _
allowAnonymousAccess, furlFields, _
taxFields)
public static void PublishCatalog(
SPWeb parentWeb,
SPList list,
Nullable<bool> allowAnonymousAccess,
IEnumerable<string> furlFields,
IEnumerable<CatalogTaxonomyFieldSettings> taxFields
)
Parameters
parentWeb
Type: Microsoft.SharePoint.SPWebThe parent web that contains the list or library that is being shared.
list
Type: Microsoft.SharePoint.SPListThe list or library that is being shared.
allowAnonymousAccess
Type: System.Nullable<Boolean>Specifies 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 via the content database using CAML queries.
furlFields
Type: System.Collections.Generic.IEnumerable<String>Auto-generated managed property names of a SPField object that can uniquely identify an item in the catalog. These properties can be used by a catalog subscriber to create friendly URLs for items in this catalog.
taxFields
Type: System.Collections.Generic.IEnumerable<CatalogTaxonomyFieldSettings>Managed property name from the search schema of the default taxonomy field in the shared catalog. The categories in this field can be used by a catalog subscriber to determine the navigation hierarchy representing this catalog at a subscribing site.
See also
Reference
PublishingCatalogUtility class
PublishingCatalogUtility members
Microsoft.SharePoint.Publishing namespace
CatalogConnectionManager.AddCatalogConnection
SPBasePermissions.AnonymousSearchAccessList
SPBasePermissions.AnonymousSearchAccessWebLists