FtpWebResponse.StatusDescription プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > FtpWebResponse.StatusDescription プロパティの意味・解説 

FtpWebResponse.StatusDescription プロパティ

メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。

FTP サーバーから送信されたステータス コードを示すテキストを取得します。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

Dim instance As FtpWebResponse
Dim value As String

value = instance.StatusDescription
public string StatusDescription { get;
 }
public:
property String^ StatusDescription {
    String^ get ();
}
/** @property */
public String get_StatusDescription ()
public function get StatusDescription
 () : String

プロパティ値
この応答で返されたステータス コードとメッセージを格納している String インスタンス。

解説解説
使用例使用例

FTP サーバー上のファイルを削除する要求を送信し、要求に対するサーバーの応答からステータス メッセージを表示するコード例を次に示します。

public static bool DeleteFileOnServer(Uri
 serverUri)
{
    // The serverUri parameter should use the ftp:// scheme.
    // It contains the name of the server file that is to be deleted.
    // Example: ftp://contoso.com/someFile.txt.
    // 
    
    if (serverUri.Scheme != Uri.UriSchemeFtp)
    {
        return false;
    }
    // Get the object used to communicate with the server.
    FtpWebRequest request = (FtpWebRequest)WebRequest.Create(serverUri);
    request.Method = WebRequestMethods.Ftp.DeleteFile;
 
    FtpWebResponse response = (FtpWebResponse) request.GetResponse();
    Console.WriteLine("Delete status: {0}",response.StatusDescription);
  
    response.Close();
    return true;
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
FtpWebResponse クラス
FtpWebResponse メンバ
System.Net 名前空間
FtpWebRequest クラス
FtpStatusCode 列挙体
WebRequestMethods.Ftp
WebRequest
WebResponse
WebClient



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

FtpWebResponse.StatusDescription プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



FtpWebResponse.StatusDescription プロパティのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS