次の方法で共有


Alert.EventDescriptionKeyword プロパティ

警告を発生する原因になるイベント メッセージのテキストに表示する必要のある単語または句を取得します。値の設定も可能です。

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

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property EventDescriptionKeyword As String 
    Get 
    Set
'使用
Dim instance As Alert 
Dim value As String 

value = instance.EventDescriptionKeyword

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

プロパティ値

型: System.String
イベント メッセージに必須の単語または句を示す String 値です。

使用例

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

関連項目

参照

Alert クラス

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

その他の技術情報

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

sp_add_alert (Transact-SQL)