Gets or sets the
System.IO.TextWriter which will trace the communications between the client-side and the FTP server.
'Declaration
Public Property TraceWriter As TextWriter
'Usage
Dim instance As FtpConnection
Dim value As TextWriter
instance.TraceWriter = value
value = instance.TraceWriter
Property Value
A reference to a
System.IO.TextWriter which will trace the communications between the client-side and the FTP server. By default, a null reference (
Nothing in Visual Basic) therefore no tracing is done.
The following example demonstrates how to write to a StreamWriter.
Dim ftp As New FtpConnection() ftp.TraceWriter = New StreamWriter( "d:\ftp.log" )
FtpConnection ftp = new FtpConnection(); ftp.TraceWriter = new StreamWriter( @"d:\ftp.log" );
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2