Share via


CatalogConnectionManager.AddCatalogConnection method (CatalogConnectionSettings)

Add a catalog connection to the site that is specified in the constructor.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Sub AddCatalogConnection ( _
    catalogInfo As CatalogConnectionSettings _
)
'Usage
Dim instance As CatalogConnectionManager
Dim catalogInfo As CatalogConnectionSettings

instance.AddCatalogConnection(catalogInfo)
public void AddCatalogConnection(
    CatalogConnectionSettings catalogInfo
)

Parameters

Remarks

Use the GetPublishingCatalog(SPSite, String) method to return catalog information and default settings.

The connection is committed to the term store when the Update() method is called.

See also

Reference

CatalogConnectionManager class

CatalogConnectionManager members

AddCatalogConnection overload

Microsoft.SharePoint.Publishing namespace

CatalogConnectionSettings