Compartilhar via


StreamSocketControl.MinProtectionLevel Propriedade

Definição

Restringe a versão do protocolo TLS que será negociada quando o desenvolvedor usar os métodos ConnectAsync() ou UpgradeToSslAsync() que exigem 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

Valor da propriedade

Um membro de enumeração SocketProtectionLevel que indica o nível de proteção do soquete.

Requisitos do Windows

Família de dispositivos
Windows 10 Fall Creators Update (introduzida na 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduzida na v5.0)

Comentários

Quando o servidor não atender à versão do TLS especificada por MinProtectionLevel, a execução correspondente de ConnectAsync() e/ou UpgradeToSslAsnc() se comportará como se o servidor não oferecesse suporte a SSL ou TLS.

Aplica-se a

Confira também