Job.Category Property

Gets or sets the category to which the job belongs.

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

Syntax

'Declaration
Public Property Category As String
public string Category { get; set; }
public:
property String^ Category {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_Category ()

/** @property */
public void set_Category (String value)
public function get Category () : String

public function set Category (value : String)

Eigenschaftswert

A String value that specifies the category to which the job belongs.

Hinweise

When setting the property for a Job object, the value must reference an existing Microsoft SQL Server Agent job category.

SQL Server job categories group SQL Server Agent objects into user-defined categories. The Category property of Job objects references the applicable SQL Server Agent job category.

By setting the Category property for the JobFilter object you can restrict the results of the EnumJobs method of the JobServer object to SQL Server Agent jobs with the specified job category.

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Beispiel

How to: Create a Job with Steps and a Schedule in Visual Basic .NET

Threadsicherheit

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

Job Class
Job Members
Microsoft.SqlServer.Management.Smo.Agent Namespace

Andere Ressourcen

Scheduling Automatic Administrative Tasks in SQL Server Agent
Automatisieren administrativer Tasks (SQL Server-Agent)
sp_add_job (Transact-SQL)