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

Dim instance As FileWebRequest Dim value As Long value = instance.ContentLength instance.ContentLength = value
public: virtual property long long ContentLength { long long get () override; void set (long long value) override; }
/** @property */ public long get_ContentLength () /** @property */ public void set_ContentLength (long value)
public override function get ContentLength () : long public override function set ContentLength (value : long)
送信している要求データのバイト数。


送信しているデータのコンテンツ長を設定するコード例を次に示します。詳細については、FileWebRequest クラスのトピックを参照してください。
' Set the ContentLength property. myFileWebRequest.ContentLength = byteArray.Length Dim contentLength As String = myFileWebRequest.ContentLength.ToString() Console.WriteLine(ControlChars.Lf + "The content length is {0}.", contentLength)
// Set the ContentLength property. myFileWebRequest.ContentLength = byteArray.Length; string contentLength = myFileWebRequest.ContentLength.ToString (); Console.WriteLine ("\nThe content length is {0}.", contentLength);

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.ContentLength プロパティを検索する場合は、下記のリンクをクリックしてください。

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