次の方法で共有


AlertSystem.NotificationMethod プロパティ

緊急時のオペレーターへの通知に使用する通知方法を取得します。値の設定も可能です。

名前空間:  Microsoft.SqlServer.Management.Smo.Agent
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property NotificationMethod As NotifyMethods 
    Get 
    Set
'使用
Dim instance As AlertSystem 
Dim value As NotifyMethods 

value = instance.NotificationMethod

instance.NotificationMethod = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public NotifyMethods NotificationMethod { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property NotifyMethods NotificationMethod {
    NotifyMethods get ();
    void set (NotifyMethods value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member NotificationMethod : NotifyMethods with get, set
function get NotificationMethod () : NotifyMethods 
function set NotificationMethod (value : NotifyMethods)

プロパティ値

型: Microsoft.SqlServer.Management.Smo.Agent.NotifyMethods
緊急時のオペレーターへの通知に使用する通知方法を示す NotifyMethods オブジェクトの値です。

使用例

SQL Server エージェントでの自動管理タスクのスケジュール設定

関連項目

参照

AlertSystem クラス

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

その他の技術情報

管理タスクの自動化 (SQL Server エージェント)

sp_add_alert (Transact-SQL)