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)

static property SecurityProtocolType SecurityProtocol {
	SecurityProtocolType get ();
	void set (SecurityProtocolType 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)

Property Value

One of the values defined in the SecurityProtocolType enumeration.

Exception typeCondition


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 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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1

Community Additions