Clase Event
Represents the runtime class for XEvent objects. Each instance of this class represents a row in sys.server_event_session_events.
Jerarquía de herencia
System.Object
Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
Microsoft.SqlServer.Management.XEvent.Event
Espacio de nombres: Microsoft.SqlServer.Management.XEvent
Ensamblado: Microsoft.SqlServer.Management.XEvent (en Microsoft.SqlServer.Management.XEvent.dll)
Sintaxis
'Declaración
Public NotInheritable Class Event _
Inherits SfcInstance _
Implements ISfcDiscoverObject
'Uso
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
El tipo Event expone los siguientes miembros.
Constructores
Nombre | Descripción | |
---|---|---|
Event() | Initializes a new instance of the Event class. | |
Event(Session, EventInfo) | Initializes a new instance of the Event class from the parent Package object and an EventInfo object. | |
Event(Session, String) | Initializes a new instance of the Event class from the parent Package object and the name of the event. |
Arriba
Propiedades
Nombre | Descripción | |
---|---|---|
AbstractIdentityKey | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) | |
Actions | Gets the actions for the XEvent object constructed by the user. | |
Description | Gets or sets the Description property. The set accessor is for internal use only. | |
EventFields | Gets the EventFieldCollection. | |
ID | Gets the ID property as Int32. | |
IdentityKey | Gets the IdentityKey property. | |
Metadata | Returns metadata about the instance and its domain. (Se hereda de SfcInstance.) | |
ModuleID | Gets the module identifier. | |
Name | Gets or sets the name of the Event object. | |
PackageName | Gets the name of the Package object that owns the event. | |
Parent | Gets or sets the parent Session object for an event. | |
Predicate | Gets or sets the predicate tree for PredicateExpression. | |
PredicateExpression | Gets or sets the string representation of the PredExpr object of an Event object. | |
Properties | Returns a collection instance properties. (Se hereda de SfcInstance.) | |
State | Gets the state of the object used in Alter function in session. | |
Urn | Returns the uniform resource name of the SfcInstance object. (Se hereda de SfcInstance.) |
Arriba
Métodos
Nombre | Descripción | |
---|---|---|
AddAction(String) | Creates an Action object with the specified name and adds it to the ActionCollection. | |
AddAction(ActionInfo) | Creates an Action object from an ActionInfo object and adds it to the ActionCollection. | |
CreateIdentityKey | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) | |
Discover | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) | |
Equals | (Se hereda de Object.) | |
GetChildCollection | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) | |
GetDomain | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) | |
GetHashCode | (Se hereda de Object.) | |
GetObjectFactory | Gets the object factory constructor used to create an Action object. | |
GetPropertySet | Returns the set of properties for the SfcInstance object. (Se hereda de SfcInstance.) | |
GetType | (Se hereda de Object.) | |
GetTypeMetadataImpl | Indicates the domains that override by returning the right TypeMetadata class directly. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) | |
InitializeUIPropertyState | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) | |
OnPropertyMetadataChanges | Invoked whenever the effective value of any SfcInstance metadata is updated. (Se hereda de SfcInstance.) | |
OnPropertyValueChanges | Invoked whenever the effective value of any SfcInstance property is updated. (Se hereda de SfcInstance.) | |
Refresh | Refreshes the object's properties by reading them from the server. (Se hereda de SfcInstance.) | |
RemoveAction | Removes an Action object from the Session object. | |
ResetKey | No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SfcInstance.) | |
Serialize | Serializes the instance to XML. (Se hereda de SfcInstance.) | |
SetEventInfo | Sets the EventInfo object for a pending XEvent object. | |
ToString | Returns a string representation of the instance Urn. (Se hereda de SfcInstance.) |
Arriba
Eventos
Nombre | Descripción | |
---|---|---|
PropertyChanged | CLS-compliant event for property changes. (Se hereda de SfcInstance.) | |
PropertyMetadataChanged | CLS-compliant event for property metadata changes. (Se hereda de SfcInstance.) |
Arriba
Implementaciones de interfaces explícitas
Nombre | Descripción | |
---|---|---|
ISfcDiscoverObject.Discover | Discovers an Action object in metadata by using the ISfcDependencyDiscoveryObjectSink object. |
Arriba
Seguridad para subprocesos
Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.