Classe TraceReplay
The TraceReplay object is a Replay object that represents the replay operation for trace log files and trace tables.
Hierarquia de herança
System. . :: . .Object
Microsoft.SqlServer.Management.Trace..::..TraceReplay
Namespace: Microsoft.SqlServer.Management.Trace
Assembly: Microsoft.SqlServer.ConnectionInfoExtended (em Microsoft.SqlServer.ConnectionInfoExtended.dll)
Sintaxe
'Declaração
<ComVisibleAttribute(False)> _
Public Class TraceReplay _
Implements IDisposable
'Uso
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
O tipo TraceReplay expõe os membros a seguir.
Propriedades
Nome | Descrição | |
---|---|---|
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. |
Início
Métodos
Nome | Descrição | |
---|---|---|
Dispose | Deletes the trace information. | |
Equals | (Herdado de Object.) | |
Finalize | Completes the trace replay. (Substitui Object. . :: . .Finalize() () () ().) | |
GetHashCode | (Herdado de Object.) | |
GetType | (Herdado de Object.) | |
MemberwiseClone | (Herdado de Object.) | |
Pause | Pauses the trace replay. | |
Start | Starts the trace replay. | |
Stop | Stops the trace replay. | |
ToString | (Herdado de Object.) |
Início
Eventos
Nome | Descrição | |
---|---|---|
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. |
Início
Comentários
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 Referência do SQL Server Profiler or using a set of Transact-SQL stored procedures called Apresentando o Rastreamento SQL.
Thread Safety
Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.
Segurança de thread
Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.
Consulte também