TraceFile Members

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

The following tables list the members exposed by the TraceFile type.

Public Constructors

  名称 Description
TraceFile Initializes a new instance of the TraceFile class.

顶部

Protected Fields

  名称 Description
ms220909.protfield(zh-cn,SQL.90).gif currentRow  Specifies the current row. (inherited from TraceReader)

顶部

Public Properties

  名称 Description
ms220909.pubproperty(zh-cn,SQL.90).gif Depth  Gets the depth value for the trace reader. (inherited from TraceReader)
ms220909.pubproperty(zh-cn,SQL.90).gif FieldCount  Gets the number of columns in the data. (inherited from TraceReader)
ms220909.pubproperty(zh-cn,SQL.90).gif IsClosed  Gets the Boolean property value that specifies whether the trace reader is closed. (inherited from TraceReader)
ms220909.pubproperty(zh-cn,SQL.90).gif Item  Overloaded. (inherited from TraceReader )
ms220909.pubproperty(zh-cn,SQL.90).gif RecordsAffected  Gets the number of records of data. (inherited from TraceReader)

顶部

Public Methods

(see also Protected Methods )

  名称 Description
ms220909.pubmethod(zh-cn,SQL.90).gif Close  Closes the trace reader and writer. (inherited from TraceReaderWriter)
ms220909.pubmethod(zh-cn,SQL.90).gif Dispose  Deletes the trace reader information. (inherited from TraceReader)
ms220909.pubmethod(zh-cn,SQL.90).gif Equals  Overloaded. (inherited from Object )
ms220909.pubmethod(zh-cn,SQL.90).gif GetBoolean  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetByte  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetBytes  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetChar  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetChars  Overloaded. (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetData  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetDataTypeName  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetDateTime  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetDecimal  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetDouble  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetFieldType  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetFloat  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetGuid  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetHashCode  (inherited from Object )
ms220909.pubmethod(zh-cn,SQL.90).gif GetInt16  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetInt32  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetInt64  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetName  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetOrdinal  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetSchemaTable  Gets a table that describes the schema. (inherited from TraceReader)
ms220909.pubmethod(zh-cn,SQL.90).gif GetStream  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetString  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetTimeSpan  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetType  (inherited from Object )
ms220909.pubmethod(zh-cn,SQL.90).gif GetValue  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif GetValues  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif InitializeAsReader Initializes the specified TraceFile object for reading data from the trace log file.
ms220909.pubmethod(zh-cn,SQL.90).gif InitializeAsReplayOutputWriter Initializes the specified TraceFile object for writing data to the trace log file only.
ms220909.pubmethod(zh-cn,SQL.90).gif InitializeAsWriter Initializes the specified TraceFile object for reading trace data from a TraceReader object, analyzing the data, and writing data the referenced trace log file.
ms220909.pubmethod(zh-cn,SQL.90).gif IsDBNull  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif IsNull  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif NextResult  Moves to the next result in the trace. (inherited from TraceReader)
ms220909.pubmethod(zh-cn,SQL.90).gif Read  Reads the trace record. (inherited from TraceReader)
ms220909.pubmethod(zh-cn,SQL.90).gifms220909.static(zh-cn,SQL.90).gif ReferenceEquals  (inherited from Object )
ms220909.pubmethod(zh-cn,SQL.90).gif ToString  (inherited from Object )
ms220909.pubmethod(zh-cn,SQL.90).gif TranslateSubclass  (inherited from TraceReader )
ms220909.pubmethod(zh-cn,SQL.90).gif Write  Writes the trace to the trace file or the trace table. (inherited from TraceReaderWriter)

顶部

Protected Methods

  名称 Description
ms220909.protmethod(zh-cn,SQL.90).gif Finalize  (inherited from Object )
ms220909.protmethod(zh-cn,SQL.90).gif MemberwiseClone  (inherited from Object )

顶部

Public Events

  名称 Description
ms220909.pubevent(zh-cn,SQL.90).gif WriteNotify  Raises an event when the trace is written to the trace file or trace table. (inherited from TraceReaderWriter)

顶部

请参阅

参考

TraceFile Class
Microsoft.SqlServer.Management.Trace Namespace

其他资源

跟踪标志 (Transact-SQL)
使用 SQL Server Profiler