Alert Constructor (JobServer, String)

Initializes a new instance of the Alert class on the specified instance of 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 Alert (
    JobServer jobServer,
    string name
)
public:
Alert (
    JobServer^ jobServer, 
    String^ name
)
public Alert (
    JobServer jobServer, 
    String name
)
public function Alert (
    jobServer : JobServer, 
    name : String
)

Параметры

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

Замечания

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

Пример

How to: Create an Alert in Visual Basic .NET

Платформы

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

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

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

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

См. также

Справочник

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

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

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