ITrace.OnEvent 事件
此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。
Assigns a certain trace event handler to an event associated with an ITrace object.
命名空間: Microsoft.AnalysisServices
組件: Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)
語法
'宣告
Event OnEvent As TraceEventHandler
'用途
Dim instance As ITrace
Dim handler As TraceEventHandler
AddHandler instance.OnEvent, handler
event TraceEventHandler OnEvent
event TraceEventHandler^ OnEvent {
void add (TraceEventHandler^ value);
void remove (TraceEventHandler^ value);
}
abstract OnEvent : IEvent<TraceEventHandler,
TraceEventArgs>
JScript 支援事件的使用,但不支援新事件的宣告。