This documentation is archived and is not being maintained.

ServicePointManager.SecurityProtocol Property

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Gets or sets the security protocol used by the service points managed by the ServicePointManager.

[Visual Basic]
Public Shared Property SecurityProtocol As SecurityProtocolType
public static SecurityProtocolType SecurityProtocol {get; set;}
public: __property static SecurityProtocolType get_SecurityProtocol();
public: __property static void set_SecurityProtocol(SecurityProtocolType);
public static function get SecurityProtocol() : SecurityProtocolType;
public static function set SecurityProtocol(SecurityProtocolType);

Property Value

One of the values defined in the SecurityProtocolType enumeration.


Exception Type Condition
NotSupportedException The value specified to set the property is not a valid SecurityProtocolType enumeration value.


This property selects a secure sockets layer (SSL) protocol for new connections that use the Secure Hypertext Transfer Protocol (https) scheme only; existing connections are not changed.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ServicePointManager Class | ServicePointManager Members | System.Net Namespace