Share via


SPRunningJob.ServerName Property

Gets name of the server on which the job is running.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Property ServerName As String
    Get
'Usage
Dim instance As SPRunningJob
Dim value As String

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

Property Value

Type: System.String
A String that represents the name of the server on which the job is running.

Remarks

Provides metadata that may be presented in usage reports, logging data, or farm tuning at a server level or service level.

See Also

Reference

SPRunningJob Class

SPRunningJob Members

Microsoft.SharePoint.Administration Namespace

SPServer