SPDatabaseParameters.EnsureServiceInstance Method
Ensures the SPDatabaseServiceInstance specified by the database parameters is initialized.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
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.