This documentation is archived and is not being maintained.
ServicePoint.ProtocolVersion Property
Visual Studio 2008
Gets the version of the HTTP protocol that the ServicePoint object uses.
Assembly: System (in System.dll)
Property Value
Type: System.VersionA Version object that contains the HTTP protocol version that the ServicePoint object uses.
The following code example displays the value of this property.
if (sp->Certificate == 0) Console::WriteLine(S"Certificate = (null)"); else Console::WriteLine(S"Certificate = {0}", sp->Certificate); if (sp->ClientCertificate == 0) Console::WriteLine(S"Client Certificate = (null)"); else Console::WriteLine(S"Client Certificate = {0}", sp->ClientCertificate); Console::WriteLine(S"ProtocolVersion = {0}", sp->ProtocolVersion->ToString()); Console::WriteLine(S"SupportsPipelining = {0}", __box(sp->SupportsPipelining));
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: