Поделиться через


Свойство 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)