Classe Event

Represents the runtime class for XEvent objects. Each instance of this class represents a row in sys.server_event_session_events.

Hiérarchie d'héritage

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
    Microsoft.SqlServer.Management.XEvent.Event

Espace de noms :  Microsoft.SqlServer.Management.XEvent
Assembly :  Microsoft.SqlServer.Management.XEvent (en Microsoft.SqlServer.Management.XEvent.dll)

Syntaxe

'Déclaration
Public NotInheritable Class Event _
    Inherits SfcInstance _
    Implements ISfcDiscoverObject
'Utilisation
Dim instance As Event
public sealed class Event : SfcInstance, 
    ISfcDiscoverObject
public ref class Event sealed : public SfcInstance, 
    ISfcDiscoverObject
[<SealedAttribute>]
type Event =  
    class 
        inherit SfcInstance 
        interface ISfcDiscoverObject 
    end
public final class Event extends SfcInstance implements ISfcDiscoverObject

Le type Event expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique Event() Initializes a new instance of the Event class.
Méthode publique Event(Session, EventInfo) Initializes a new instance of the Event class from the parent Package object and an EventInfo object.
Méthode publique Event(Session, String) Initializes a new instance of the Event class from the parent Package object and the name of the event.

Haut de la page

Propriétés

  Nom Description
Propriété protégée AbstractIdentityKey Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Propriété publique Actions Gets the actions for the XEvent object constructed by the user.
Propriété publique Description Gets or sets the Description property. The set accessor is for internal use only.
Propriété publique EventFields Gets the EventFieldCollection.
Propriété publique ID Gets the ID property as Int32.
Propriété publique IdentityKey Gets the IdentityKey property.
Propriété publique Metadata Returns metadata about the instance and its domain. (hérité de SfcInstance.)
Propriété publique ModuleID Gets the module identifier.
Propriété publique Name Gets or sets the name of the Event object.
Propriété publique PackageName Gets the name of the Package object that owns the event.
Propriété publique Parent Gets or sets the parent Session object for an event.
Propriété publique Predicate Gets or sets the predicate tree for PredicateExpression.
Propriété publique PredicateExpression Gets or sets the string representation of the PredExpr object of an Event object.
Propriété publique Properties Returns a collection instance properties. (hérité de SfcInstance.)
Propriété publique State Gets the state of the object used in Alter function in session.
Propriété publique Urn Returns the uniform resource name of the SfcInstance object. (hérité de SfcInstance.)

Haut de la page

Méthodes

  Nom Description
Méthode publique AddAction(String) Creates an Action object with the specified name and adds it to the ActionCollection.
Méthode publique AddAction(ActionInfo) Creates an Action object from an ActionInfo object and adds it to the ActionCollection.
Méthode protégée CreateIdentityKey Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode publique Discover Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode publique Equals (hérité de Object.)
Méthode protégée GetChildCollection Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode publique GetDomain Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publiqueMembre statique GetObjectFactory Gets the object factory constructor used to create an Action object.
Méthode publique GetPropertySet Returns the set of properties for the SfcInstance object. (hérité de SfcInstance.)
Méthode publique GetType (hérité de Object.)
Méthode protégée GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée InitializeUIPropertyState Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. (hérité de SfcInstance.)
Méthode protégée OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. (hérité de SfcInstance.)
Méthode publique Refresh Refreshes the object's properties by reading them from the server. (hérité de SfcInstance.)
Méthode publique RemoveAction Removes an Action object from the Session object.
Méthode protégée ResetKey Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode publique Serialize Serializes the instance to XML. (hérité de SfcInstance.)
Méthode publique SetEventInfo Sets the EventInfo object for a pending XEvent object.
Méthode publique ToString Returns a string representation of the instance Urn. (hérité de SfcInstance.)

Haut de la page

Événements

  Nom Description
Événement public PropertyChanged CLS-compliant event for property changes. (hérité de SfcInstance.)
Événement public PropertyMetadataChanged CLS-compliant event for property metadata changes. (hérité de SfcInstance.)

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface expliciteMéthode privée ISfcDiscoverObject.Discover Discovers an Action object in metadata by using the ISfcDependencyDiscoveryObjectSink object.

Haut de la page

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Management.XEvent