Share via


EventCollector Class

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

Spazio dei nomi: Microsoft.SqlServer.NotificationServices
Assembly : Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

Sintassi

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

Osservazioni

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.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

EventCollector Members
Microsoft.SqlServer.NotificationServices Namespace