SPWindowsServiceInstance Constructor (String, SPServer, SPWindowsService)
Initializes a new instance of the SPWindowsServiceInstance class.
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 SPWindowsService _
)
'Usage
Dim name As String
Dim server As SPServer
Dim service As SPWindowsService
Dim instance As New SPWindowsServiceInstance(name, server, _
service)
public SPWindowsServiceInstance(
string name,
SPServer server,
SPWindowsService service
)
Parameters
name
Type: System.StringA string containing a name that is not localized to be used to identify the object.
server
Type: Microsoft.SharePoint.Administration.SPServerAn SPServer object that represents the server associated with the instance.
service
Type: Microsoft.SharePoint.Administration.SPWindowsServiceAn SPWindowsService object that represents the Windows service of which to create an instance.
See Also
Reference
SPWindowsServiceInstance Class
SPWindowsServiceInstance Members