SearchAdminDatabase.CreateInstance method (SPFarm, SPDatabaseParameters)

Creates an instance of the SearchAdminDatabase 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 SearchAdminDatabase
'Usage
Dim farm As SPFarm
Dim databaseParameters As SPDatabaseParameters
Dim returnValue As SearchAdminDatabase

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

Parameters

Return value

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

Remarks

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

See also

Reference

SearchAdminDatabase class

SearchAdminDatabase members

CreateInstance overload

Microsoft.Office.Server.Search.Administration namespace