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 プロパティ
                    を検索
                     全ての辞書からFileWebRequest.ContentLength プロパティ
                    を検索
                - FileWebRequest.ContentLength プロパティのページへのリンク

 
                             
                    


