Freigeben über


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.

Namespace: Microsoft.SqlServer.Management.Smo.Agent
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
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
)

Parameter

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

Hinweise

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Beispiel

How to: Construct an Object in Visual Basic .NET

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

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

Andere Ressourcen

Scheduling Automatic Administrative Tasks in SQL Server Agent
Automatisieren administrativer Tasks (SQL Server-Agent)
sp_add_category (Transact-SQL)