Freigeben über


ServicePointManager.SecurityProtocol-Eigenschaft

Ruft das Sicherheitsprotokoll ab, das von den vom ServicePointManager-Objekt verwalteten ServicePoint-Objekten verwendet wird, oder legt dieses fest.

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

Syntax

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

value = ServicePointManager.SecurityProtocol

ServicePointManager.SecurityProtocol = value
public static SecurityProtocolType SecurityProtocol { get; set; }
public:
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)

Eigenschaftenwert

Einer der in der SecurityProtocolType-Enumeration definierten Werte.

Ausnahmen

Ausnahmetyp Bedingung

NotSupportedException

Der zum Festlegen dieser Eigenschaft angegebene Wert ist kein gültiger Wert für die SecurityProtocolType-Enumeration.

Hinweise

Diese Eigenschaft wählt ein SSL (Secure Sockets Layer)-Protokoll für neue Verbindungen aus, die nur das HTTPS (Secure Hypertext Transfer Protocol)-Schema verwenden. Bestehende Verbindungen werden nicht geändert.

Plattformen

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1

Siehe auch

Referenz

ServicePointManager-Klasse
ServicePointManager-Member
System.Net-Namespace