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

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

FileWebRequest.Method プロパティ

要求使用するプロトコル メソッド取得または設定します。このプロパティは、今後使用するために予約されています。

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

解説解説

Method プロパティは、現在 FileWebRequest クラスでは使用されていません。

使用例使用例

要求使用するプロトコル メソッド設定するコード例次に示します詳細については、FileWebRequest クラストピック参照してください

' Create a Uri object.to access the file requested by the user. 
Dim myUrl As New Uri("file://"
 + fileName)

' Create a FileWebRequest object.for the requeste file.
myFileWebRequest = CType(WebRequest.CreateDefault(myUrl), FileWebRequest)

' Set the time-out to the value selected by the user.
myFileWebRequest.Timeout = timeout

' Set the Method property to POST  
myFileWebRequest.Method = "POST"

// Create a Uri object. 
Uri myUrl = new Uri ("file://" + fileName);

// Create a FileWebRequest object.
myFileWebRequest = (FileWebRequest)WebRequest.CreateDefault (myUrl);

// Set the time-out to the value selected by the user.
myFileWebRequest.Timeout = timeout;

// Set the Method property to POST  
myFileWebRequest.Method = "POST";
// Create a Uri object.
Uri^ myUrl = gcnew Uri( String::Format( "file://{0}", fileName
 ) );

// Create a FileWebRequest object.
myFileWebRequest = dynamic_cast<FileWebRequest^>(WebRequest::CreateDefault(
 myUrl ));

// Set the timeout to the value selected by the user.
myFileWebRequest->Timeout = timeout;

// Set the Method property to POST
myFileWebRequest->Method = "POST";

// Create a Uri object. 
Uri myUrl = new Uri("file://" + fileName);

// Create a FileWebRequest object.
myFileWebRequest = 
    ((FileWebRequest)(WebRequest.CreateDefault(myUrl)));

// Set the time-out to the value selected by the user.
myFileWebRequest.set_Timeout(timeout);
// Set the Method property to POST  
myFileWebRequest.set_Method("POST");
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からFileWebRequest.Method プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からFileWebRequest.Method プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からFileWebRequest.Method プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

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

   

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



FileWebRequest.Method プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS