Event.SetEventInfo 方法
Sets the EventInfo object for a pending XEvent object.
命名空間: Microsoft.SqlServer.Management.XEvent
組件: Microsoft.SqlServer.Management.XEvent (在 Microsoft.SqlServer.Management.XEvent.dll 中)
語法
'宣告
Public Sub SetEventInfo ( _
eventInfo As EventInfo _
)
'用途
Dim instance As Event
Dim eventInfo As EventInfo
instance.SetEventInfo(eventInfo)
public void SetEventInfo(
EventInfo eventInfo
)
public:
void SetEventInfo(
EventInfo^ eventInfo
)
member SetEventInfo :
eventInfo:EventInfo -> unit
public function SetEventInfo(
eventInfo : EventInfo
)
參數
- eventInfo
型別:Microsoft.SqlServer.Management.XEvent.EventInfo
An EventInfo object.
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | The input EventInfo object is null. |
XEventException | The Event object is not in the pending state. |