共用方式為


JobServer.AlertSystem 屬性

The AlertSystem object stores information that applies to all the alerts defined on SQL Server Agent.

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

語法

'宣告
<SfcObjectAttribute(SfcObjectRelationship.Object, SfcObjectCardinality.One)> _
Public ReadOnly Property AlertSystem As AlertSystem 
    Get
'用途
Dim instance As JobServer 
Dim value As AlertSystem 

value = instance.AlertSystem
[SfcObjectAttribute(SfcObjectRelationship.Object, SfcObjectCardinality.One)]
public AlertSystem AlertSystem { get; }
[SfcObjectAttribute(SfcObjectRelationship::Object, SfcObjectCardinality::One)]
public:
property AlertSystem^ AlertSystem {
    AlertSystem^ get ();
}
[<SfcObjectAttribute(SfcObjectRelationship.Object, SfcObjectCardinality.One)>]
member AlertSystem : AlertSystem
function get AlertSystem () : AlertSystem

屬性值

型別:Microsoft.SqlServer.Management.Smo.Agent.AlertSystem
An AlertSystem object value that stores information about all the alerts defined on SQL Server Agent.

範例

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

請參閱

參考

JobServer 類別

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

其他資源

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

SQL Server Agent 預存程序 (Transact-SQL)