Event Constructor (Session, String)

 

Initializes a new instance of the Event class from the parent Package object and the name of the event.

Namespace:   Microsoft.SqlServer.Management.XEvent
Assembly:  Microsoft.SqlServer.Management.XEvent (in Microsoft.SqlServer.Management.XEvent.dll)

public Event(
	Session parent,
	string name
)

Parameters

parent
Type: Microsoft.SqlServer.Management.XEvent.Session

The parent Package object.

name
Type: System.String

The fully qualified name of the event as a string.

Exception Condition
ArgumentNullException

Parameter name is null.

XEventException

The event name is malformed or wrong.

NullReferenceException

The parent of the session is not set yet.

Return to top
Show: