SPWindowsServiceInstance 构造函数 (String, SPServer, SPWindowsService)
SPWindowsServiceInstance类的新实例进行初始化。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Sub New ( _
name As String, _
server As SPServer, _
service As SPWindowsService _
)
用法
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
)
参数
name
类型:System.String包含未进行本地化要用于标识对象名称的字符串。
server
类型:Microsoft.SharePoint.Administration.SPServerSPServer对象,该对象表示与该实例相关联的服务器。
service
类型:Microsoft.SharePoint.Administration.SPWindowsService一个SPWindowsService对象,它表示要创建的实例的 Windows 服务。