AlertCategory Constructor (JobServer, String)

Initializes a new instance of the AlertCategory class on the specified instance of the SQL Server Agent and with the specified name.

Пространство имен: Microsoft.SqlServer.Management.Smo.Agent
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Синтаксис

'Декларация
Public Sub New ( _
    jobServer As JobServer, _
    name As String _
)
public AlertCategory (
    JobServer jobServer,
    string name
)
public:
AlertCategory (
    JobServer^ jobServer, 
    String^ name
)
public AlertCategory (
    JobServer jobServer, 
    String name
)
public function AlertCategory (
    jobServer : JobServer, 
    name : String
)

Параметры

  • jobServer
    A JobServer object that specifies the SQL Server Agent service.
  • name
    A String value that specifies the name of the alert category.

Замечания

Это пространство имен, класс или элемент поддерживаются только платформой Microsoft .NET Framework версии 2.0.

Пример

How to: Construct an Object in Visual Basic .NET

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

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

Другие ресурсы

Scheduling Automatic Administrative Tasks in SQL Server Agent
Автоматизация задач администрирования (агент SQL Server)
sp_add_category (Transact-SQL)