次の方法で共有


AlertSystem.IsForwardedAlways プロパティ

すべてのイベントを転送先サーバーに転送するか、または SQL Server の現在のインスタンスでイベント通知が定義されていないイベントのみを転送するかを示す Boolean プロパティ値を取得します。値の設定も可能です。

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

構文

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

value = instance.IsForwardedAlways

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

プロパティ値

型: System.Boolean
すべてのイベントを転送するか、それともイベント通知のないイベントのみを転送するかを示す Boolean 値です。True の場合、すべてのイベントが転送先サーバーに転送されます。False (既定値) の場合、イベント通知が定義されていないイベントのみが転送されます。

使用例

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

関連項目

参照

AlertSystem クラス

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

その他の技術情報

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

sp_add_alert (Transact-SQL)