TraceReplay 类
The TraceReplay object is a Replay object that represents the replay operation for trace log files and trace tables.
继承层次结构
System. . :: . .Object
Microsoft.SqlServer.Management.Trace..::..TraceReplay
命名空间: Microsoft.SqlServer.Management.Trace
程序集: Microsoft.SqlServer.ConnectionInfoExtended(在 Microsoft.SqlServer.ConnectionInfoExtended.dll 中)
语法
声明
<ComVisibleAttribute(False)> _
Public Class TraceReplay _
Implements IDisposable
用法
Dim instance As TraceReplay
[ComVisibleAttribute(false)]
public class TraceReplay : IDisposable
[ComVisibleAttribute(false)]
public ref class TraceReplay : IDisposable
[<ComVisibleAttribute(false)>]
type TraceReplay =
class
interface IDisposable
end
public class TraceReplay implements IDisposable
TraceReplay 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
Connection | Gets or sets the connection with an instance of SQL Server. | |
Options | Gets or sets the configuration options for replaying the trace. | |
OutputFile | Gets or sets the name of an optional file to which trace replay output is streamed. | |
OutputTable | Gets or sets the name of an optional table to which trace replay output is streamed. | |
Source | Gets or sets the TraceReader object that contains the trace to be replayed. |
页首
方法
名称 | 说明 | |
---|---|---|
Dispose | Deletes the trace information. | |
Equals | (从 Object 继承。) | |
Finalize | Completes the trace replay. (覆盖 Object. . :: . .Finalize() () () ()。) | |
GetHashCode | (从 Object 继承。) | |
GetType | (从 Object 继承。) | |
MemberwiseClone | (从 Object 继承。) | |
Pause | Pauses the trace replay. | |
Start | Starts the trace replay. | |
Stop | Stops the trace replay. | |
ToString | (从 Object 继承。) |
页首
事件
名称 | 说明 | |
---|---|---|
ReplayEvent | Invokes the handler before an event is replayed. | |
ReplayPause | Invokes the handler before a replayed trace is paused. | |
ReplayResultEvent | Invokes the handler before a result is returned from a replayed event. | |
ReplayStart | Invokes the handler before a replayed trace is started. | |
ReplayStop | Invokes the handler before a replayed trace is stopped. |
页首
注释
With the TraceReplay object you can:
Replay events a from a trace log file or trace table.
Modify trace data as it is replayed.
In addition to the Trace and Replay objects, the trace log file can be accessed manually with SQL Server Profiler 参考 or using a set of Transact-SQL stored procedures called SQL 跟踪简介.
Thread Safety
此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。不保证所有实例成员都是线程安全的。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。