Share via


Job.JobID Property

Gets or sets the job ID value.

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute> _
Public ReadOnly Property JobID As Guid
    Get
'Usage
Dim instance As Job
Dim value As Guid

value = instance.JobID
[SfcPropertyAttribute]
public Guid JobID { get; }
[SfcPropertyAttribute]
public:
property Guid JobID {
    Guid get ();
}
[<SfcPropertyAttribute>]
member JobID : Guid
function get JobID () : Guid

Property Value

Type: System.Guid
A Guid system object value that specifies the job ID value.

Remarks

Each Microsoft SQL Server Agent job is identified by a system-generated GUID. The identifier is a 32-character string representing a hexadecimal number.