SPDiagnosticsServiceBase constructor (String, SPFarm)
使用指定的參數初始化SPDiagnosticsServiceBase類別的新執行個體。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Protected Sub New ( _
name As String, _
parent As SPFarm _
)
'用途
Dim name As String
Dim parent As SPFarm
Dim instance As New SPDiagnosticsServiceBase(name, parent)
protected SPDiagnosticsServiceBase(
string name,
SPFarm parent
)
參數
name
Type: System.String新的診斷服務的名稱。此參數必須是String.Empty。
parent
Type: Microsoft.SharePoint.Administration.SPFarm在要建立之服務的伺服器陣列。
備註
不建議使用直接撥打此建構函式。相反地,您應該接著會呼叫GetLocal方法的衍生類別上實作本機屬性。
請參閱
參照
SPDiagnosticsServiceBase class
SPDiagnosticsServiceBase members