共用方式為


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
)

參數

請參閱

參照

SPService class

SPService members

SPService overload

Microsoft.SharePoint.Administration namespace