Partager via


SearchGathererDatabase.CreateInstance Method (SPFarm, SPDatabaseParameters)

Creates an instance of the SearchGathererDatabase class.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Shared Function CreateInstance ( _
    farm As SPFarm, _
    databaseParameters As SPDatabaseParameters _
) As SearchGathererDatabase
'Usage
Dim farm As SPFarm
Dim databaseParameters As SPDatabaseParameters
Dim returnValue As SearchGathererDatabase

returnValue = SearchGathererDatabase.CreateInstance(farm, _
    databaseParameters)
public static SearchGathererDatabase CreateInstance(
    SPFarm farm,
    SPDatabaseParameters databaseParameters
)

Parameters

Return Value

Type: Microsoft.Office.Server.Search.Administration.SearchGathererDatabase
The newly created instance.

Remarks

This method will throw an exception if the database specified by the database parameters already exists.

See Also

Reference

SearchGathererDatabase Class

SearchGathererDatabase Members

CreateInstance Overload

Microsoft.Office.Server.Search.Administration Namespace