FtpWebResponse.WelcomeMessage Propriedade

Definição

Obtém a mensagem enviada pelo servidor FTP quando a autenticação é concluída.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

Valor da propriedade

String

Um String que contém a mensagem de boas-vindas enviada pelo servidor; caso contrário, Empty se nenhuma mensagem for enviada.A String that contains the welcome message sent by the server; otherwise, Empty if no message is sent.

Exemplos

O exemplo de código a seguir exibe o valor dessa propriedade.The following code example displays the value of this property.

Console::WriteLine( "Welcome message: {0}", response->WelcomeMessage );
Console.WriteLine("Welcome message: {0}",
    response.WelcomeMessage);

Comentários

Se a conexão estiver sendo reutilizada (a KeepAlive propriedade é definida como true ), a WelcomeMessage propriedade retornará a primeira mensagem de boas-vindas recebida com a conexão.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.

Aplica-se a

Confira também