Freigeben über


OperatorCategory Constructor (JobServer, String)

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

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

Andere Ressourcen

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