Поделиться через


Метод 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.

Пространство имен:  Microsoft.SqlServer.Management.Trace
Сборка:  Microsoft.SqlServer.ConnectionInfoExtended (в Microsoft.SqlServer.ConnectionInfoExtended.dll)

Синтаксис

'Декларация
Public Sub InitializeAsWriter ( _
    source As TraceReader, _
    destinationFileName As String _
)
'Применение
Dim instance As TraceFile
Dim source As TraceReader
Dim destinationFileName As String

instance.InitializeAsWriter(source, destinationFileName)
public void InitializeAsWriter(
    TraceReader source,
    string destinationFileName
)
public:
void InitializeAsWriter(
    TraceReader^ source, 
    String^ destinationFileName
)
member InitializeAsWriter : 
        source:TraceReader * 
        destinationFileName:string -> unit 
public function InitializeAsWriter(
    source : TraceReader, 
    destinationFileName : String
)

Параметры

  • destinationFileName
    Тип: System. . :: . .String
    A String value that specifies the destination trace log file in which to write the new trace data.

Примеры

Readme_Tracer