SPDatabaseParameters.EnsureServiceInstance method
Ensures the SPDatabaseServiceInstance specified by the database parameters is initialized.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function EnsureServiceInstance As SPDatabaseServiceInstance
'Usage
Dim instance As SPDatabaseParameters
Dim returnValue As SPDatabaseServiceInstance
returnValue = instance.EnsureServiceInstance()
public SPDatabaseServiceInstance EnsureServiceInstance()
Return value
Type: Microsoft.SharePoint.Administration.SPDatabaseServiceInstance
Returns SPDatabaseServiceInstance.