Classe Event

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

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.SqlServer.Management.XEvent
Assembly:  Microsoft.SqlServer.Management.XEvent (in Microsoft.SqlServer.Management.XEvent.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class Event _
    Inherits SfcInstance _
    Implements ISfcDiscoverObject
'Utilizzo
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

Nel tipo Event sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico Event() Initializes a new instance of the Event class.
Metodo pubblico Event(Session, EventInfo) Initializes a new instance of the Event class from the parent Package object and an EventInfo object.
Metodo pubblico Event(Session, String) Initializes a new instance of the Event class from the parent Package object and the name of the event.

In alto

Proprietà

  Nome Descrizione
Proprietà protetta AbstractIdentityKey Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Proprietà pubblica Actions Gets the actions for the XEvent object constructed by the user.
Proprietà pubblica Description Gets or sets the Description property. The set accessor is for internal use only.
Proprietà pubblica EventFields Gets the EventFieldCollection.
Proprietà pubblica ID Gets the ID property as Int32.
Proprietà pubblica IdentityKey Gets the IdentityKey property.
Proprietà pubblica Metadata Returns metadata about the instance and its domain. Ereditato da SfcInstance.
Proprietà pubblica ModuleID Gets the module identifier.
Proprietà pubblica Name Gets or sets the name of the Event object.
Proprietà pubblica PackageName Gets the name of the Package object that owns the event.
Proprietà pubblica Parent Gets or sets the parent Session object for an event.
Proprietà pubblica Predicate Gets or sets the predicate tree for PredicateExpression.
Proprietà pubblica PredicateExpression Gets or sets the string representation of the PredExpr object of an Event object.
Proprietà pubblica Properties Returns a collection instance properties. Ereditato da SfcInstance.
Proprietà pubblica State Gets the state of the object used in Alter function in session.
Proprietà pubblica Urn Returns the uniform resource name of the SfcInstance object. Ereditato da SfcInstance.

In alto

Metodi

  Nome Descrizione
Metodo pubblico AddAction(String) Creates an Action object with the specified name and adds it to the ActionCollection.
Metodo pubblico AddAction(ActionInfo) Creates an Action object from an ActionInfo object and adds it to the ActionCollection.
Metodo protetto CreateIdentityKey Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico Discover Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico Equals Ereditato da Object.
Metodo protetto GetChildCollection Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico GetDomain Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblicoMembro statico GetObjectFactory Gets the object factory constructor used to create an Action object.
Metodo pubblico GetPropertySet Returns the set of properties for the SfcInstance object. Ereditato da SfcInstance.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto InitializeUIPropertyState Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. Ereditato da SfcInstance.
Metodo protetto OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. Ereditato da SfcInstance.
Metodo pubblico Refresh Refreshes the object's properties by reading them from the server. Ereditato da SfcInstance.
Metodo pubblico RemoveAction Removes an Action object from the Session object.
Metodo protetto ResetKey Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico Serialize Serializes the instance to XML. Ereditato da SfcInstance.
Metodo pubblico SetEventInfo Sets the EventInfo object for a pending XEvent object.
Metodo pubblico ToString Returns a string representation of the instance Urn. Ereditato da SfcInstance.

In alto

Eventi

  Nome Descrizione
Evento pubblico PropertyChanged CLS-compliant event for property changes. Ereditato da SfcInstance.
Evento pubblico PropertyMetadataChanged CLS-compliant event for property metadata changes. Ereditato da SfcInstance.

In alto

Implementazioni esplicite dell'interfaccia

  Nome Descrizione
Implementazione esplicita dell'interfacciaMetodo privato ISfcDiscoverObject.Discover Discovers an Action object in metadata by using the ISfcDependencyDiscoveryObjectSink object.

In alto

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Management.XEvent