SearchGathererDatabase.CreateInstance Method (SPFarm, SPDatabaseParameters, SPDatabaseValidation)
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, _
validationParameters As SPDatabaseValidation _
) As SearchGathererDatabase
'Usage
Dim farm As SPFarm
Dim databaseParameters As SPDatabaseParameters
Dim validationParameters As SPDatabaseValidation
Dim returnValue As SearchGathererDatabase
returnValue = SearchGathererDatabase.CreateInstance(farm, _
databaseParameters, validationParameters)
public static SearchGathererDatabase CreateInstance(
SPFarm farm,
SPDatabaseParameters databaseParameters,
SPDatabaseValidation validationParameters
)
Parameters
farm
Type: Microsoft.SharePoint.Administration.SPFarmThe server farm where the instance is to be created.
databaseParameters
Type: Microsoft.SharePoint.Administration.SPDatabaseParametersThe database parameters for creating the instance.
validationParameters
Type: Microsoft.SharePoint.Administration.SPDatabaseValidationThe database validation option used when creating the instance.
Return Value
Type: Microsoft.Office.Server.Search.Administration.SearchGathererDatabase
The newly created instance.
Remarks
This method can get an instance by creating a new instance or by attaching to an existing instance in the configuration database.