次の方法で共有


NotificationClassProtocol.FailureEventLogInterval Property

失敗の回数にかかわらず、前回の書き込み後、次にイベント ログに書き込むまでの時間の長さを取得または設定します。

名前空間: Microsoft.SqlServer.Management.Nmo
アセンブリ: Microsoft.SqlServer.Smo (microsoft.sqlserver.smo.dll 内)

構文

'宣言
Public Property FailureEventLogInterval As TimeSpan
public TimeSpan FailureEventLogInterval { get; set; }
public:
property TimeSpan FailureEventLogInterval {
    TimeSpan get ();
    void set (TimeSpan value);
}
/** @property */
public TimeSpan get_FailureEventLogInterval ()

/** @property */
public void set_FailureEventLogInterval (TimeSpan value)
public function get FailureEventLogInterval () : TimeSpan

public function set FailureEventLogInterval (value : TimeSpan)

プロパティ値

ログ記録の間隔を示す TimeSpan オブジェクトです。

解説

FailureEventLogInterval プロパティと FailuresBeforeEventLog を組み合わせて使用すると、アプリケーションのニーズに応じて、メッセージが過度にイベント ログに記録されないようにエラーのログ記録を構成できます。

使用例

次の例は、配信プロトコルの実行設定を定義する方法を示しています。

smtpProtocol.FailuresBeforeEventLog = 2;
smtpProtocol.FailureEventLogInterval = new TimeSpan(0, 10, 0);
smtpProtocol.FailuresBeforeAbort = 10;
smtpProtocol.MulticastRecipientLimit = 50;
smtpProtocol.WorkItemTimeout = new TimeSpan(0, 20, 0);
smtpProtocol.FailuresBeforeEventLog = 2
smtpProtocol.FailureEventLogInterval = New TimeSpan(0, 10, 0)
smtpProtocol.FailuresBeforeAbort = 10
smtpProtocol.MulticastRecipientLimit = 50
smtpProtocol.WorkItemTimeout = New TimeSpan(0, 20, 0)

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

NotificationClassProtocol Class
NotificationClassProtocol Members
Microsoft.SqlServer.Management.Nmo Namespace

その他の技術情報

FailureEventLogInterval 要素 (ADF)
配信プロトコルの実行設定の指定
配信プロトコルの構成