JobCategory.CategoryType Property

 

Applies To: SQL Server 2016 Preview

Gets or sets the type of job category.

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

Syntax

[SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.ReadOnlyAfterCreation | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)]
public CategoryType CategoryType { get; set; }
public:
[SfcPropertyAttribute(SfcPropertyFlags::None | SfcPropertyFlags::ReadOnlyAfterCreation | SfcPropertyFlags::Standalone | SfcPropertyFlags::Matrix)]
property CategoryType CategoryType {
    CategoryType get();
    void set(CategoryType value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.ReadOnlyAfterCreation | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)>]
member CategoryType : CategoryType with get, set
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Matrix)>
Public Property CategoryType As CategoryType

Property Value

Type: Microsoft.SqlServer.Management.Smo.Agent.CategoryType

A CategoryType object that specifies the type of job category.

Examples

Legacy Code Example

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

JobCategory Class
Microsoft.SqlServer.Management.Smo.Agent Namespace
Automated Administration Tasks (SQL Server Agent)
sp_add_category (Transact-SQL)

Return to top