FtpWebResponse.ExitMessage Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the message sent by the server when the FTP session is ending.
public:
property System::String ^ ExitMessage { System::String ^ get(); };
public string? ExitMessage { get; }
public string ExitMessage { get; }
member this.ExitMessage : string
Public ReadOnly Property ExitMessage As String
Property Value
A String that contains the exit message sent by the server; otherwise, Empty if no message is sent.
Examples
The following code example displays the value of this property.
Console::WriteLine( "Exit message: {0}", response->ExitMessage );
Console.WriteLine("Exit message: {0}",
response.ExitMessage);
Remarks
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.