次の方法で共有


Session.AddEvent Method

Definition

Overloads

AddEvent(EventInfo)

New an event and add it to this session.

AddEvent(String)

New an event from fully qualified event name and add it to this session.

AddEvent(EventInfo)

New an event and add it to this session.

public Microsoft.SqlServer.Management.XEvent.Event AddEvent (Microsoft.SqlServer.Management.XEvent.EventInfo eventInfo);
member this.AddEvent : Microsoft.SqlServer.Management.XEvent.EventInfo -> Microsoft.SqlServer.Management.XEvent.Event
Public Function AddEvent (eventInfo As EventInfo) As Event

Parameters

eventInfo
EventInfo

The event info.

Returns

The newly created event object.

Applies to

AddEvent(String)

New an event from fully qualified event name and add it to this session.

public Microsoft.SqlServer.Management.XEvent.Event AddEvent (string eventName);
member this.AddEvent : string -> Microsoft.SqlServer.Management.XEvent.Event
Public Function AddEvent (eventName As String) As Event

Parameters

eventName
String

Name of the event.

Returns

The newly created event object.

Exceptions

Event name is malformed or wrong.

Parameter eventName is null

Applies to