SPTimerJobUsageEntry.WebApplicationName Property
Gets or sets the name of the Web application that is associated with the timer job.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Property WebApplicationName As String
Get
Set
'Usage
Dim instance As SPTimerJobUsageEntry
Dim value As String
value = instance.WebApplicationName
instance.WebApplicationName = value
public string WebApplicationName { get; set; }
Property Value
Type: System.String
Returns a String representing the Web application name when the job is running in the scope of a Web application; otherwise, return an empty string.
Remarks
For timer jobs that run under the Web application scope, you can view and filter the job definition by Web application. For these jobs, the log entry contains the Web application name and ID. If not running in the scope of a Web application, this value should be an empty string.