Export (0) Print
Expand All

ServicePointManager.SecurityProtocol Property

Gets or sets the security protocol used by the ServicePoint objects managed by the ServicePointManager object.

Namespace: System.Net
Assembly: System (in system.dll)

'Declaration
Public Shared Property SecurityProtocol As SecurityProtocolType
'Usage
Dim value As SecurityProtocolType

value = ServicePointManager.SecurityProtocol

ServicePointManager.SecurityProtocol = value
/** @property */
public static SecurityProtocolType get_SecurityProtocol ()

/** @property */
public static void set_SecurityProtocol (SecurityProtocolType value)

public static function get SecurityProtocol () : SecurityProtocolType

public static function set SecurityProtocol (value : SecurityProtocolType)

Not applicable.

Property Value

One of the values defined in the SecurityProtocolType enumeration.

Exception typeCondition

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.

Windows 98, Windows Server 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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1

Community Additions

ADD
Show:
© 2014 Microsoft