CatalogConnectionManager.DeleteCatalogConnection method
Removes a catalog connection and the associated search result source from the site specified in the constructor.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Sub DeleteCatalogConnection ( _
catalogPath As String _
)
'Usage
Dim instance As CatalogConnectionManager
Dim catalogPath As String
instance.DeleteCatalogConnection(catalogPath)
public void DeleteCatalogConnection(
string catalogPath
)
Parameters
catalogPath
Type: System.StringThe URL that identifies the catalog that is being removed as the URL is stored in the search index. If the catalog is an SPList object, the URL is the absolute path.
Remarks
Committed when the Update method is called.
If the catalog is configured to rewrite item URLs, then any Web Part that renders items from this catalog shows original URLs after the connection is removed.
See also
Reference
CatalogConnectionManager class