JobServer.AlertCategories 属性

Represents a collection of AlertCategory objects. Each AlertCategory object represents an alert category defined on SQL Server Agent.

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

语法

声明
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(AlertCategory))> _
Public ReadOnly Property AlertCategories As AlertCategoryCollection 
    Get
用法
Dim instance As JobServer 
Dim value As AlertCategoryCollection 

value = instance.AlertCategories
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(AlertCategory))]
public AlertCategoryCollection AlertCategories { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(AlertCategory))]
public:
property AlertCategoryCollection^ AlertCategories {
    AlertCategoryCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(AlertCategory))>]
member AlertCategories : AlertCategoryCollection
function get AlertCategories () : AlertCategoryCollection

属性值

类型:Microsoft.SqlServer.Management.Smo.Agent.AlertCategoryCollection
An AlertCategoryCollection object that represents all the alert categories defined on SQL Server Agent.

示例

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

请参阅

参考

JobServer 类

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

其他资源

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

SQL Server 代理存储过程 (Transact-SQL)

sp_help_alert (Transact-SQL)

SQL Server 代理存储过程 (Transact-SQL)