FtpWebResponse.WelcomeMessage Property

Definition

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

C#
public string? WelcomeMessage { get; }
C#
public string WelcomeMessage { get; }

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.

C#
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

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

See also