Proprietà Job.Description
Gets or sets the textual description of the job.
Spazio dei nomi Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Sintassi
'Dichiarazione
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property Description As String
Get
Set
'Utilizzo
Dim instance As Job
Dim value As String
value = instance.Description
instance.Description = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string Description { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ Description {
String^ get ();
void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member Description : string with get, set
function get Description () : String
function set Description (value : String)
Valore proprietà
Tipo: System.String
A String value that specifies the textual description of the job.
Esempi
The following code example sets the job description.
C#
Server srv = new Server("(local)");
Job jb = new Job(srv.JobServer, "Test Job");
jb.Description = "Sample Job Description";
PowerShell
$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"
Vedere anche
Riferimento
Spazio dei nomi Microsoft.SqlServer.Management.Smo.Agent
Altre risorse
Automatizzazione delle attività amministrative (SQL Server Agent)
Pianificazione delle attività amministrative automatiche in SQL Server Agent