Alert.AlertType プロパティ

警告の種類を示す AlertType オブジェクトの値を取得します。

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

構文

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

value = instance.AlertType
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public AlertType AlertType { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property AlertType AlertType {
    AlertType get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member AlertType : AlertType
function get AlertType () : AlertType

プロパティ値

型: Microsoft.SqlServer.Management.Smo.Agent.AlertType
警告の種類を示す AlertType オブジェクトの値です。

説明

このプロパティは、警告がパフォーマンス条件、および Microsoft SQL Server イベントまたはユーザー定義メッセージなどの SQL Server から発生しないイベントに基づくかどうかを示します。

使用例

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

関連項目

参照

Alert クラス

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

その他の技術情報

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

sp_add_alert (Transact-SQL)