EventCollector Class

Collects events into batches, and then writes them to the application database.

命名空间: Microsoft.SqlServer.NotificationServices
程序集: Microsoft.SqlServer.NotificationServices (in 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

备注

Once you have created an Event and populated it with event data, you submit it to an EventCollector using the Write method. You create an Event, then populate and submit it once for each event record that you want to create. The EventCollector then gathers the events written to it into a batch, and then adds the event batch to the application database when you call the Commit method. After calling Commit, the EventCollector reinitializes itself to create a new event batch.

Inheritance Hierarchy

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

线程安全

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

EventCollector Members
Microsoft.SqlServer.NotificationServices Namespace