SPDatabaseServiceInstance Constructor (String, SPServer, SPDatabaseService)
Initializes a new instance of the SPDatabaseServiceInstance class based on the specified database service instance name, server, and database service.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub New ( _
name As String, _
server As SPServer, _
service As SPDatabaseService _
)
'Usage
Dim name As String
Dim server As SPServer
Dim service As SPDatabaseService
Dim instance As New SPDatabaseServiceInstance(name, server, _
service)
public SPDatabaseServiceInstance(
string name,
SPServer server,
SPDatabaseService service
)
Parameters
name
Type: System.StringA string containing the display name that is used to describe the instance in the administration user interface.
server
Type: Microsoft.SharePoint.Administration.SPServerAn SPServer object representing the server on which the instance is installed.
service
Type: Microsoft.SharePoint.Administration.SPDatabaseServiceAn SPDatabaseService object representing the database service that owns the instance.
See Also
Reference
SPDatabaseServiceInstance Class
SPDatabaseServiceInstance Members