Classe TraceReplay
The TraceReplay object is a Replay object that represents the replay operation for trace log files and trace tables.
Hiérarchie d'héritage
System. . :: . .Object
Microsoft.SqlServer.Management.Trace..::..TraceReplay
Espace de noms : Microsoft.SqlServer.Management.Trace
Assembly : Microsoft.SqlServer.ConnectionInfoExtended (en Microsoft.SqlServer.ConnectionInfoExtended.dll)
Syntaxe
'Déclaration
<ComVisibleAttribute(False)> _
Public Class TraceReplay _
Implements IDisposable
'Utilisation
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
Le type TraceReplay expose les membres suivants.
Constructeurs
Nom | Description | |
---|---|---|
TraceReplay | Initializes a new instance of the TraceReplay class. |
Haut de la page
Propriétés
Nom | Description | |
---|---|---|
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. |
Haut de la page
Méthodes
Nom | Description | |
---|---|---|
Dispose | Deletes the trace information. | |
Equals | (hérité de Object.) | |
Finalize | Completes the trace replay. (remplace Object. . :: . .Finalize() () () ().) | |
GetHashCode | (hérité de Object.) | |
GetType | (hérité de Object.) | |
MemberwiseClone | (hérité de Object.) | |
Pause | Pauses the trace replay. | |
Start | Starts the trace replay. | |
Stop | Stops the trace replay. | |
ToString | (hérité de Object.) |
Haut de la page
Événements
Nom | Description | |
---|---|---|
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. |
Haut de la page
Notes
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 Guide de référence du Générateur de profils SQL Server or using a set of Transact-SQL stored procedures called Présentation de SQL Trace.
Thread Safety
Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.
Sécurité des threads
Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.
Voir aussi