OnEvent 事件
Assigns a certain trace event handler to an event associated with a Trace object.
命名空间: Microsoft.AnalysisServices
程序集: Microsoft.AnalysisServices(在 Microsoft.AnalysisServices.dll 中)
语法
声明
Public Event OnEvent As TraceEventHandler
用法
Dim instance As Trace
Dim handler As TraceEventHandler
AddHandler instance.OnEvent, handler
public event TraceEventHandler OnEvent
public:
virtual event TraceEventHandler^ OnEvent {
void add (TraceEventHandler^ value);
void remove (TraceEventHandler^ value);
}
abstract OnEvent : IEvent<TraceEventHandler,
TraceEventArgs>
override OnEvent : IEvent<TraceEventHandler,
TraceEventArgs>
JScript 支持使用事件,但不支持声明新事件。