FederationManager.RemoveSource method
Deletes a Result Source.
Namespace: Microsoft.Office.Server.Search.Administration.Query
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Sub RemoveSource ( _
source As Source _
)
'Usage
Dim instance As FederationManager
Dim source As Source
instance.RemoveSource(source)
public void RemoveSource(
Source source
)
Parameters
source
Type: Microsoft.Office.Server.Search.Administration.Query.Sourcethe Source to delete.
Exceptions
Exception | Condition |
---|---|
[!:SearchObjectConcurrencyException] | if the Result Source has changed in the search system, since it was created, and thus cannot be deleted. |
InvalidOperationException | if the Result Source is built in and thus cannot be deleted. |
UnauthorizedAccessException | if the current user does not have permissions to the level of the source. |
See also
Reference
Microsoft.Office.Server.Search.Administration.Query namespace