共用方式為


TraceFile 類別

The TraceFile class is a Trace object that represents a trace log file.

命名空間:  Microsoft.SqlServer.Management.Trace
組件:  Microsoft.SqlServer.ConnectionInfoExtended (在 Microsoft.SqlServer.ConnectionInfoExtended.dll 中)

語法

'宣告
<ComVisibleAttribute(False)> _
Public Class TraceFile _
    Inherits TraceReaderWriter
'用途
Dim instance As TraceFile
[ComVisibleAttribute(false)]
public class TraceFile : TraceReaderWriter
[ComVisibleAttribute(false)]
public ref class TraceFile : public TraceReaderWriter
[<ComVisibleAttribute(false)>]
type TraceFile =  
    class
        inherit TraceReaderWriter
    end
public class TraceFile extends TraceReaderWriter

備註

With the TraceFile object you can:

  • Read from a trace log file.

  • Write to a trace log file.

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 追蹤簡介.

範例

Readme_Tracer

執行緒安全性

這個類型的任何公用static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員都可以是安全執行緒。