次の方法で共有


Alert.EventSource プロパティ

アプリケーション イベント ログからイベント ソース テキストを取得します。

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

構文

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

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

プロパティ値

型: System.String
イベント ソースを含む String 値です。

使用例

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

関連項目

参照

Alert クラス

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

その他の技術情報

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

sp_add_alert (Transact-SQL)