Share via


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

Hinweise

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

Threadsicherheit

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.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

EventCollector Members
Microsoft.SqlServer.NotificationServices Namespace