ServicePoint.ProtocolVersion プロパティ
アセンブリ: System (system.dll 内)
構文ServicePoint オブジェクトが使用する HTTP プロトコルのバーションを格納している Version オブジェクト。
解説HTTP プロトコルのバージョンは HTTP/1.0 および HTTP/1.1 です。
使用例If sp.Certificate Is Nothing Then Console.WriteLine("Certificate = (null)") Else Console.WriteLine(("Certificate = " + sp.Certificate.ToString())) End If If sp.ClientCertificate Is Nothing Then Console.WriteLine("ClientCertificate = (null)") Else Console.WriteLine(("ClientCertificate = " + sp.ClientCertificate.ToString())) End If Console.WriteLine("ProtocolVersion = " + sp.ProtocolVersion.ToString()) Console.WriteLine(("SupportsPipelining = " + sp.SupportsPipelining.ToString()))
if (sp.Certificate == null) Console.WriteLine ("Certificate = (null)"); else Console.WriteLine ("Certificate = " + sp.Certificate.ToString ()); if (sp.ClientCertificate == null) Console.WriteLine ("ClientCertificate = (null)"); else Console. WriteLine ("ClientCertificate = " + sp.ClientCertificate.ToString ()); Console.WriteLine ("ProtocolVersion = " + sp.ProtocolVersion.ToString ()); Console.WriteLine ("SupportsPipelining = " + sp.SupportsPipelining);
if ( sp->Certificate == nullptr ) Console::WriteLine( "Certificate = (null)" ); else Console::WriteLine( "Certificate = {0}", sp->Certificate ); if ( sp->ClientCertificate == nullptr ) Console::WriteLine( "Client Certificate = (null)" ); else Console::WriteLine( "Client Certificate = {0}", sp->ClientCertificate ); Console::WriteLine( "ProtocolVersion = {0}", sp->ProtocolVersion->ToString() ); Console::WriteLine( "SupportsPipelining = {0}", sp->SupportsPipelining );
if (sp.get_Certificate() == null) { Console.WriteLine("Certificate = (null)"); } else { Console.WriteLine(("Certificate = " + sp.get_Certificate().ToString())); } if (sp.get_ClientCertificate() == null) { Console.WriteLine("ClientCertificate = (null)"); } else { Console.WriteLine(("ClientCertificate = " + sp.get_ClientCertificate().ToString())); } Console.WriteLine(("ProtocolVersion = " + sp.get_ProtocolVersion().ToString())); Console.WriteLine(("SupportsPipelining = " + sp.get_SupportsPipelining()));
プラットフォーム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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照- ServicePoint.ProtocolVersion プロパティのページへのリンク