Partilhar via


TraceReaderWriter.WriteNotify Event

Raises an event when the trace is written to the trace file or trace table.

Namespace: Microsoft.SqlServer.Management.Trace
Assembly: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)

Syntax

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

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

Example

Readme_Tracer

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

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

TraceReaderWriter Class
TraceReaderWriter Members
Microsoft.SqlServer.Management.Trace Namespace

Other Resources

Trace Flags (Transact-SQL)
Using SQL Server Profiler