Partager via


Event Class

Represents a single event.

Espace de noms: Microsoft.SqlServer.NotificationServices
Assembly: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

Syntaxe

'Déclaration
<ComVisibleAttribute(True)> _
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
<GuidAttribute("CC6F9519-07C9-39CA-8D88-32440AD326A9")> _
<DefaultMemberAttribute("Item")> _
Public Class Event
    Implements IEvent
[ComVisibleAttribute(true)] 
[ClassInterfaceAttribute(ClassInterfaceType.None)] 
[GuidAttribute("CC6F9519-07C9-39CA-8D88-32440AD326A9")] 
[DefaultMemberAttribute("Item")] 
public class Event : IEvent
[ComVisibleAttribute(true)] 
[ClassInterfaceAttribute(ClassInterfaceType::None)] 
[GuidAttribute(L"CC6F9519-07C9-39CA-8D88-32440AD326A9")] 
[DefaultMemberAttribute(L"Item")] 
public ref class Event : IEvent
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.None) */ 
/** @attribute GuidAttribute("CC6F9519-07C9-39CA-8D88-32440AD326A9") */ 
/** @attribute DefaultMemberAttribute("Item") */ 
public class Event implements IEvent
ComVisibleAttribute(true) 
ClassInterfaceAttribute(ClassInterfaceType.None) 
GuidAttribute("CC6F9519-07C9-39CA-8D88-32440AD326A9") 
DefaultMemberAttribute("Item") 
public class Event implements IEvent

Notes

The Event object encapsulates the event data for a single event. A reference to the Event object is passed to an EventCollector object, which writes the data to the application database.

For examples of the Event class, see Utilisation de l'API d'envoi d'événement managé.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.NotificationServices.Event

Sécurité des threads

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.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

Event Members
Microsoft.SqlServer.NotificationServices Namespace