Share via


Trace.OnEvent Event

Assigns a certain trace event handler to an event associated with a Trace object.

Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices (in microsoft.analysisservices.dll)

Syntax

'Declaration
Public Event OnEvent As TraceEventHandler
public event TraceEventHandler OnEvent
public:
virtual event TraceEventHandler^ OnEvent {
    void add (TraceEventHandler^ value) sealed;
    void remove (TraceEventHandler^ value) sealed;
}
/** @event */
public final void add_OnEvent (TraceEventHandler value)

/** @event */
public final void remove_OnEvent (TraceEventHandler value)
JScript supports the use of events, but not the declaration of new ones.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

Trace Class
Trace Members
Microsoft.AnalysisServices Namespace