EventCollector Class

イベントをバッチに集めて、アプリケーション データベースに書き込みます。

名前空間: Microsoft.SqlServer.NotificationServices
アセンブリ: Microsoft.SqlServer.NotificationServices (microsoft.sqlserver.notificationservices.dll 内)

構文

'宣言
<GuidAttribute("64B925FF-E8F0-36E4-8F9D-3D65AF33809A")> _
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
<ComVisibleAttribute(True)> _
Public Class EventCollector
    Inherits MarshalByRefObject
    Implements IEventCollector, IDisposable
[GuidAttribute("64B925FF-E8F0-36E4-8F9D-3D65AF33809A")] 
[ClassInterfaceAttribute(ClassInterfaceType.None)] 
[ComVisibleAttribute(true)] 
public class EventCollector : MarshalByRefObject, IEventCollector, IDisposable
[GuidAttribute(L"64B925FF-E8F0-36E4-8F9D-3D65AF33809A")] 
[ClassInterfaceAttribute(ClassInterfaceType::None)] 
[ComVisibleAttribute(true)] 
public ref class EventCollector : public MarshalByRefObject, IEventCollector, IDisposable
/** @attribute GuidAttribute("64B925FF-E8F0-36E4-8F9D-3D65AF33809A") */ 
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.None) */ 
/** @attribute ComVisibleAttribute(true) */ 
public class EventCollector extends MarshalByRefObject implements IEventCollector, IDisposable
GuidAttribute("64B925FF-E8F0-36E4-8F9D-3D65AF33809A") 
ClassInterfaceAttribute(ClassInterfaceType.None) 
ComVisibleAttribute(true) 
public class EventCollector extends MarshalByRefObject implements IEventCollector, IDisposable

解説

Event を作成しイベント データを設定したら、Write メソッドを使用して EventCollector に送信します。Event の作成では、その設定および送信は、作成するイベント レコードごとに 1 回ずつ行います。EventCollector は、自身に書き込まれたイベントを収集してバッチを作成し、Commit メソッドの呼び出し時に、アプリケーション データベースにイベント バッチを追加します。EventCollector は、Commit を呼び出した後、自身を再初期化して新しいイベント バッチを作成します。

継承階層

System.Object
   System.MarshalByRefObject
    Microsoft.SqlServer.NotificationServices.EventCollector

スレッド セーフ

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

プラットフォーム

開発プラットフォーム

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

対象プラットフォーム

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

参照

関連項目

EventCollector Members
Microsoft.SqlServer.NotificationServices Namespace