Event 생성자 (Session, String)
Initializes a new instance of the Event class from the parent Package object and the name of the event.
네임스페이스: Microsoft.SqlServer.Management.XEvent
어셈블리: Microsoft.SqlServer.Management.XEvent(Microsoft.SqlServer.Management.XEvent.dll)
구문
‘선언
Public Sub New ( _
parent As Session, _
name As String _
)
‘사용 방법
Dim parent As Session
Dim name As String
Dim instance As New Event(parent, _
name)
public Event(
Session parent,
string name
)
public:
Event(
Session^ parent,
String^ name
)
new :
parent:Session *
name:string -> Event
public function Event(
parent : Session,
name : String
)
매개 변수
- parent
유형: Microsoft.SqlServer.Management.XEvent.Session
The parent Package object.
- name
유형: System.String
The fully qualified name of the event as a string.
예외
예외 | 조건 |
---|---|
ArgumentNullException | Parameter name is null. |
XEventException | The event name is malformed or wrong. |
NullReferenceException | The parent of the session is not set yet. |