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

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

FileWebRequest.RequestUri プロパティ

要求URI (Uniform Resource Identifier) を取得します

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

Public Overrides ReadOnly
 Property RequestUri As Uri
Dim instance As FileWebRequest
Dim value As Uri

value = instance.RequestUri
public override Uri RequestUri { get; }
/** @property */
public Uri get_RequestUri ()

プロパティ
要求URI格納している Uri

使用例使用例

RequestUri プロパティ使用して要求URI取得するコード例次に示します

' Compare the file name and 'RequestUri' is same or not.
If myFileWebRequest.RequestUri.Equals(myUrl) Then
    ''GetRequestStream' method returns the stream handler for writing
 into the file.
    Dim readStream As Stream = myFileWebRequest.GetRequestStream()
    ' Write to the stream.
    readStream.Write(byteArray, 0, userInput.Length)
    readStream.Close()
End If

Console.WriteLine("The String you entered was successfully written
 into the file.")
Console.WriteLine((ControlChars.Cr +"The content length sent to
 the server is " + myFileWebRequest.ContentLength.ToString() + "."))
// Compare the file name and 'RequestUri' is same or not.
if(myFileWebRequest.RequestUri.Equals(myUrl))
{
    // 'GetRequestStream' method returns the stream handler for writing
 into the file.
    Stream readStream =myFileWebRequest.GetRequestStream();
    // Write to the stream
    readStream.Write(byteArray,0,userInput.Length);
   readStream.Close();
}

Console.WriteLine("\nThe String you entered was successfully written into the
 file.");    
Console.WriteLine("The content length sent to the server is "+myFileWebRequest.ContentLength+".");    

// Compare the file name and 'RequestUri' is same or not.
if ( myFileWebRequest->RequestUri->Equals( myUrl ) )
{
   // 'GetRequestStream' method returns the stream handler for writing
 into the file.
   Stream^ readStream = myFileWebRequest->GetRequestStream();
   // Write to the stream
   readStream->Write( byteArray, 0, userInput->Length );
   readStream->Close();
}

Console::WriteLine( "\nThe String you entered was successfully written into
 the file." );
Console::WriteLine( "The content length sent to the server is {0}.", myFileWebRequest->ContentLength
 );
    // Compare the file name and 'RequestUri' is same or not.
    if (myFileWebRequest.get_RequestUri().Equals(myUrl)) {
        // 'GetRequestStream' method returns the stream handler 
        // for writing into the file.
        Stream readStream = myFileWebRequest.GetRequestStream();

        // Write to the stream
        readStream.Write(byteArray, 0, userInput.get_Length());
        readStream.Close();
    }
    Console.WriteLine("\nThe String you entered was successfully " 
        + " written into the file.");
    Console.WriteLine("The content length sent to the server is " 
        + myFileWebRequest.get_ContentLength() + ".");
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS