다음을 통해 공유


Action 생성자 (Event, String)

Initializes a new instance of the Action class with parent XEvent object and the name in form of eventModuleId.packagename.eventname or packagename.eventname.

네임스페이스:  Microsoft.SqlServer.Management.XEvent
어셈블리:  Microsoft.SqlServer.Management.XEvent(Microsoft.SqlServer.Management.XEvent.dll)

구문

‘선언
Public Sub New ( _
    parent As Event, _
    name As String _
)
‘사용 방법
Dim parent As Event 
Dim name As String 

Dim instance As New Action(parent, _
    name)
public Action(
    Event parent,
    string name
)
public:
Action(
    Event^ parent, 
    String^ name
)
new : 
        parent:Event * 
        name:string -> Action
public function Action(
    parent : Event, 
    name : String
)

매개 변수

  • name
    유형: System.String
    The name as an eventModuleId.packagename.eventname object or packagename.eventname object.

예외

예외 조건
ArgumentNullException

Parameter name is null.

XEventException

The event name is malformed or wrong.

NullReferenceException

The parent, or grandparent, of the XEvent object is not set.

참고 항목

참조

Action 클래스

Action 오버로드

Microsoft.SqlServer.Management.XEvent 네임스페이스