共用方式為


JobServer.Operators 屬性

Represents a collection of Operator objects. Each Operator object represents an operator defined on SQL Server Agent.

命名空間:  Microsoft.SqlServer.Management.Smo.Agent
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(Operator))> _
Public ReadOnly Property Operators As OperatorCollection 
    Get
'用途
Dim instance As JobServer 
Dim value As OperatorCollection 

value = instance.Operators
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(Operator))]
public OperatorCollection Operators { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(Operator))]
public:
property OperatorCollection^ Operators {
    OperatorCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(Operator))>]
member Operators : OperatorCollection
function get Operators () : OperatorCollection

屬性值

型別:Microsoft.SqlServer.Management.Smo.Agent.OperatorCollection
An OperatorCollection that represents the operators defined on SQL Server Agent.

範例

使用 SQL Server Agent 排程自動管理工作

請參閱

參考

JobServer 類別

Microsoft.SqlServer.Management.Smo.Agent 命名空間

其他資源

自動化管理工作 (SQL Server Agent)

sp_help_operator (Transact-SQL)