FtpTrace.AddListener Method

System.Net.FtpClient

Collapse image Expand Image Copy image CopyHover image
Add a TraceListner to the collection. You can use one of the predefined TraceListeners in the System.Diagnostics namespace, such as ConsoleTraceListener for logging to the console, or you can write your own deriving from System.Diagnostics.TraceListener.

Namespace: System.Net.FtpClient
Assembly: System.Net.FtpClient (in System.Net.FtpClient.dll) Version: 1.0.5064.17461

Syntax

C#
public static void AddListener(
	TraceListener listener
)
Visual Basic
Public Shared Sub AddListener ( 
	listener As TraceListener
)
Visual C++
public:
static void AddListener(
	TraceListener^ listener
)

Parameters

listener
Type: System.Diagnostics..::..TraceListener
The TraceListener to add to the collection

See Also