Export (0) Print
Expand All

FtpWebResponse.ExitMessage Property

Note: This property is new in the .NET Framework version 2.0.

Gets the message sent by the server when the FTP session is ending.

Namespace: System.Net
Assembly: System (in system.dll)

public:
property String^ ExitMessage {
	String^ get ();
}
/** @property */
public String get_ExitMessage ()

public function get ExitMessage () : String

Property Value

A String that contains the exit message sent by the server; otherwise, Empty if no message is sent.

The ExitMessage property is not available until the connection to the server is closed or reused. If the KeepAlive property is true, the connection used by this request is not closed, which prevents the server from sending an exit message.

The following code example displays the value of this property.

Console.WriteLine("Exit message: {0}", 
    response.ExitMessage);

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft