SPService constructor (String, SPFarm)
初始化根據指定的服務名稱及伺服器陣列的SPService類別的新執行個體。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Protected Sub New ( _
name As String, _
farm As SPFarm _
)
'用途
Dim name As String
Dim farm As SPFarm
Dim instance As New SPService(name, farm)
protected SPService(
string name,
SPFarm farm
)
參數
name
Type: System.String字串,包含服務的名稱。
farm
Type: Microsoft.SharePoint.Administration.SPFarm表示在要建立之服務的伺服器陣列的SPFarm物件。