EventCollector Class

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

Namespace: Microsoft.SqlServer.NotificationServices
Assembly: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

Syntax

'Declaration
<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

Remarks

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

Thread Safety

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.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

EventCollector Members
Microsoft.SqlServer.NotificationServices Namespace