FtpWebResponse.WelcomeMessage Property
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 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
A String that contains the welcome message sent by the server; otherwise, Empty if no message is sent.
The following code example displays the value of this property.
Console::WriteLine( "Welcome message: {0}", response->WelcomeMessage );
Console.WriteLine("Welcome message: {0}",
response.WelcomeMessage);
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.
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: