JobCategory.CategoryType 属性

Gets or sets the type of job category.

命名空间:  Microsoft.SqlServer.Management.Smo.Agent
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
Public Property CategoryType As CategoryType 
    Get 
    Set
用法
Dim instance As JobCategory 
Dim value As CategoryType 

value = instance.CategoryType

instance.CategoryType = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)]
public CategoryType CategoryType { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone)]
public:
property CategoryType CategoryType {
    CategoryType get ();
    void set (CategoryType value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)>]
member CategoryType : CategoryType with get, set
function get CategoryType () : CategoryType 
function set CategoryType (value : CategoryType)

属性值

类型:Microsoft.SqlServer.Management.Smo.Agent.CategoryType
A CategoryType object that specifies the type of job category.

示例

在 SQL Server 代理中计划自动管理任务

请参阅

参考

JobCategory 类

Microsoft.SqlServer.Management.Smo.Agent 命名空间

其他资源

自动执行管理任务(SQL Server 代理)

sp_add_category (Transact-SQL)