다음을 통해 공유


SearchAdminDatabase.CreateNew Method

Creates and provisions an instance of the search administration database.

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

Syntax

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

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

Parameters

Return Value

Type: Microsoft.Office.Server.Search.Administration.SearchAdminDatabase
The newly created and provisioned search administration database 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

Microsoft.Office.Server.Search.Administration Namespace