Event Constructors

Definition

Overloads

Event()

Initializes a new instance of the Event class. Empty constructor is a convention in SFC.

Event(Session, EventInfo)

Initializes a new instance of the Event class from an EventInfo object.

Event(Session, String)

Initializes a new instance of the Event class with given parent and name.

Event()

Initializes a new instance of the Event class. Empty constructor is a convention in SFC.

public Event ();
Public Sub New ()

Applies to

Event(Session, EventInfo)

Initializes a new instance of the Event class from an EventInfo object.

public Event (Microsoft.SqlServer.Management.XEvent.Session parent, Microsoft.SqlServer.Management.XEvent.EventInfo eventInfo);
new Microsoft.SqlServer.Management.XEvent.Event : Microsoft.SqlServer.Management.XEvent.Session * Microsoft.SqlServer.Management.XEvent.EventInfo -> Microsoft.SqlServer.Management.XEvent.Event
Public Sub New (parent As Session, eventInfo As EventInfo)

Parameters

parent
Session

The parent.

eventInfo
EventInfo

The event info.

Applies to

Event(Session, String)

Initializes a new instance of the Event class with given parent and name.

public Event (Microsoft.SqlServer.Management.XEvent.Session parent, string name);
new Microsoft.SqlServer.Management.XEvent.Event : Microsoft.SqlServer.Management.XEvent.Session * string -> Microsoft.SqlServer.Management.XEvent.Event
Public Sub New (parent As Session, name As String)

Parameters

parent
Session

The parent.

name
String

The full qulified name of the event.

Exceptions

The event name is malformed or wrong.

Parameter name is null.

The parent of Session is not set yet.

Applies to