Udostępnij za pośrednictwem


StreamSocketControl.MinProtectionLevel Property

Definition

Constrains the TLS protocol version that will be negotiated when the developer uses the ConnectAsync() or UpgradeToSslAsync() methods that require TLS.

public:
 property SocketProtectionLevel MinProtectionLevel { SocketProtectionLevel get(); void set(SocketProtectionLevel value); };
SocketProtectionLevel MinProtectionLevel();

void MinProtectionLevel(SocketProtectionLevel value);
public SocketProtectionLevel MinProtectionLevel { get; set; }
var socketProtectionLevel = streamSocketControl.minProtectionLevel;
streamSocketControl.minProtectionLevel = socketProtectionLevel;
Public Property MinProtectionLevel As SocketProtectionLevel

Property Value

A SocketProtectionLevel enumeration member indicating the socket protection level.

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Remarks

When the server does not meet the TLS version specified by MinProtectionLevel, the corresponding ConnectAsync() and/or UpgradeToSslAsnc() execution will behave just as if the server does not support SSL or TLS.

Applies to

See also