FileWebRequest.Method プロパティ
アセンブリ: System (system.dll 内)

public: virtual property String^ Method { String^ get () override; void set (String^ value) override; }
public override function get Method () : String public override function set Method (value : String)
要求で使用するプロトコル メソッド。


要求に使用するプロトコル メソッドを設定するコード例を次に示します。詳細については、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");

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からFileWebRequest.Method プロパティを検索する場合は、下記のリンクをクリックしてください。

- FileWebRequest.Method プロパティのページへのリンク