HttpVersion クラス
アセンブリ: System (system.dll 内)


HttpVersion クラスは、HttpWebRequest クラスと HttpWebResponse クラスでサポートされる HTTP バージョンを定義します。HTTP バージョン番号は、パイプライン処理やチャンク処理などの HTTP のバージョン固有機能を制御するために使用します。

' Create a 'HttpWebRequest' object. Dim myHttpWebRequest As HttpWebRequest = CType(WebRequest.Create("http://www.microsoft.com"), HttpWebRequest) Console.WriteLine(ControlChars.Cr + "The 'ProtocolVersion' of the protocol before assignment is :{0}", myHttpWebRequest.ProtocolVersion) ' Assign Version10 to ProtocolVersion. myHttpWebRequest.ProtocolVersion = HttpVersion.Version10 ' The response object of 'HttpWebRequest' is assigned to a 'HttpWebResponse' variable. Dim myHttpWebResponse As HttpWebResponse = CType(myHttpWebRequest.GetResponse(), HttpWebResponse) Console.WriteLine(ControlChars.Cr + "The 'ProtocolVersion' of the protocol after assignment is :{0}", myHttpWebRequest.ProtocolVersion) Console.WriteLine(ControlChars.Cr + "The 'ProtocolVersion' of the response object is :{0}", myHttpWebResponse.ProtocolVersion)
// Create a 'HttpWebRequest' object. HttpWebRequest myHttpWebRequest=(HttpWebRequest)WebRequest.Create("http://www.microsoft.com"); Console.WriteLine("\nThe 'ProtocolVersion' of the protocol before assignment is :{0}",myHttpWebRequest.ProtocolVersion); // Assign Version10 to ProtocolVersion. myHttpWebRequest.ProtocolVersion=HttpVersion.Version10; // Assign the response object of 'HttpWebRequest' to a 'HttpWebResponse' variable. HttpWebResponse myHttpWebResponse=(HttpWebResponse)myHttpWebRequest.GetResponse(); Console.WriteLine("\nThe 'ProtocolVersion' of the protocol after assignment is :{0}",myHttpWebRequest.ProtocolVersion); Console.WriteLine("\nThe 'ProtocolVersion' of the response object is :{0}" ,myHttpWebResponse.ProtocolVersion);
// Create a 'HttpWebRequest' object. HttpWebRequest^ myHttpWebRequest = (HttpWebRequest^)( WebRequest::Create( "http://www.microsoft.com" ) ); Console::WriteLine( "\nThe 'ProtocolVersion' of the protocol before assignment is : {0}", myHttpWebRequest->ProtocolVersion ); // Assign Version10 to ProtocolVersion. myHttpWebRequest->ProtocolVersion = HttpVersion::Version10; // Assign the response Object* of 'HttpWebRequest' to a 'HttpWebResponse' variable. HttpWebResponse^ myHttpWebResponse = (HttpWebResponse^)( myHttpWebRequest->GetResponse() ); Console::WriteLine( "\nThe 'ProtocolVersion' of the protocol after assignment is : {0}", myHttpWebRequest->ProtocolVersion ); Console::WriteLine( "\nThe 'ProtocolVersion' of the response Object* is : {0}", myHttpWebResponse->ProtocolVersion );
// Create a 'HttpWebRequest' object. HttpWebRequest myHttpWebRequest = (HttpWebRequest) (WebRequest.Create("http://www.microsoft.com")); Console.WriteLine("\nThe 'ProtocolVersion' of the protocol " + "before assignment is :{0}", myHttpWebRequest.get_ProtocolVersion()); // Assign Version10 to ProtocolVersion. myHttpWebRequest.set_ProtocolVersion(HttpVersion.Version10); // Assign the response object of 'HttpWebRequest' to a // 'HttpWebResponse' variable. HttpWebResponse myHttpWebResponse = (HttpWebResponse) (myHttpWebRequest.GetResponse()); Console.WriteLine("\nThe 'ProtocolVersion' of the protocol after " + "assignment is :{0}",myHttpWebRequest.get_ProtocolVersion()); Console.WriteLine("\nThe 'ProtocolVersion' of the response object" + " is :{0}", myHttpWebResponse.get_ProtocolVersion());

System.Net.HttpVersion


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


HttpVersion コンストラクタ
アセンブリ: System (system.dll 内)


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


HttpVersion フィールド
HttpVersion メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

HttpVersion メンバ
HttpWebRequest クラスと HttpWebResponse クラスでサポートされる HTTP バージョン番号を定義します。
HttpVersion データ型で公開されるメンバを以下の表に示します。

名前 | 説明 | |
---|---|---|
![]() | HttpVersion |


名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

Weblioに収録されているすべての辞書からHttpVersionを検索する場合は、下記のリンクをクリックしてください。

- HttpVersionのページへのリンク