SearchPropertyStoreDatabase.CreateNew Method
Creates and provisions an instance of the search property 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 SearchPropertyStoreDatabase
'Usage
Dim farm As SPFarm
Dim databaseParameters As SPDatabaseParameters
Dim returnValue As SearchPropertyStoreDatabase
returnValue = SearchPropertyStoreDatabase.CreateNew(farm, _
databaseParameters)
public static SearchPropertyStoreDatabase CreateNew(
SPFarm farm,
SPDatabaseParameters databaseParameters
)
Parameters
farm
Type: Microsoft.SharePoint.Administration.SPFarmThe server farm where the instance is created.
databaseParameters
Type: Microsoft.SharePoint.Administration.SPDatabaseParametersThe database parameters for creating the instance.
Return Value
Type: Microsoft.Office.Server.Search.Administration.SearchPropertyStoreDatabase
The newly created and provisioned search property database instance.
Remarks
This method will throw an exception if the database specified by the database parameters already exists.
See Also
Reference
SearchPropertyStoreDatabase Class