ערוך

שתף באמצעות


FtpWebResponse.WelcomeMessage Property

Definition

Gets the message sent by the FTP server when authentication is complete.

public:
 property System::String ^ WelcomeMessage { System::String ^ get(); };
public string? WelcomeMessage { get; }
public string WelcomeMessage { get; }
member this.WelcomeMessage : string
Public ReadOnly Property WelcomeMessage As String

Property Value

A String that contains the welcome 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( "Welcome message: {0}", response->WelcomeMessage );
Console.WriteLine("Welcome message: {0}",
    response.WelcomeMessage);

Remarks

If the connection is being reused (the KeepAlive property is set to true), the WelcomeMessage property returns the first welcome message received with the connection.

Applies to

See also