共用方式為


JobServer.OperatorCategories 屬性

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

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

語法

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

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

屬性值

型別:Microsoft.SqlServer.Management.Smo.Agent.OperatorCategoryCollection
A OperatorCategoryCollection that represents the operator categories defined on SQL Server Agent.

範例

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

請參閱

參考

JobServer 類別

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

其他資源

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

sp_help_operator (Transact-SQL)