TraceReaderWriter.WriteNotify 事件
Raises an event when the trace is written to the trace file or trace table.
命名空间: Microsoft.SqlServer.Management.Trace
程序集: Microsoft.SqlServer.ConnectionInfoExtended(在 Microsoft.SqlServer.ConnectionInfoExtended.dll 中)
语法
声明
Public Event WriteNotify As WriteNotifyEventHandler
用法
Dim instance As TraceReaderWriter
Dim handler As WriteNotifyEventHandler
AddHandler instance.WriteNotify, handler
public event WriteNotifyEventHandler WriteNotify
public:
virtual event WriteNotifyEventHandler^ WriteNotify {
void add (WriteNotifyEventHandler^ value);
void remove (WriteNotifyEventHandler^ value);
}
abstract WriteNotify : IEvent<WriteNotifyEventHandler,
TraceEventArgs>
override WriteNotify : IEvent<WriteNotifyEventHandler,
TraceEventArgs>
JScript 支持使用事件,但不支持声明新事件。
实现
示例
请参阅
参考
Microsoft.SqlServer.Management.Trace 命名空间