共用方式為


SPRunningJob.ServerName property

取得在其執行之工作的伺服器名稱。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public ReadOnly Property ServerName As String
    Get
'用途
Dim instance As SPRunningJob
Dim value As String

value = instance.ServerName
public string ServerName { get; }

Property value

Type: System.String
String 表示在其執行之工作的伺服器名稱。

備註

提供可能會出現在流量報告中,記錄資料,或伺服器陣列調整伺服器層級或服務層級的中繼資料。

請參閱

參照

SPRunningJob class

SPRunningJob members

Microsoft.SharePoint.Administration namespace

SPServer