StreamSocketControl.MinProtectionLevel StreamSocketControl.MinProtectionLevel StreamSocketControl.MinProtectionLevel StreamSocketControl.MinProtectionLevel 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 : SocketProtectionLevel MinProtectionLevel { get; set; }
SocketProtectionLevel MinProtectionLevel();

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

Property Value

A SocketProtectionLevel enumeration member indicating the socket protection level.

Additional features and requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

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.

See also