Job.Description Property


Gets or sets the textual description of the job.

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

public string Description { get; set; }

Property Value

Type: System.String

A String value that specifies the textual description of the job.

The following code example sets the job description.


Server srv = new Server("(local)");
Job jb = new Job(srv.JobServer, "Test Job");
jb.Description = "Sample Job Description";


$srv = new-object Microsoft.SqlServer.Management.Smo.Server("(local)")
$jb = new-object Microsoft.SqlServer.Management.Smo.Agent.Job($srv.JobServer, "Test Job")
$jb.Description = "Sample Job Description"
Return to top