Partager via


SocketElement.IPProtectionLevel Propriété

Définition

Obtient ou définit une valeur qui spécifie la valeur par défaut IPProtectionLevel à utiliser pour un socket.

public:
 property System::Net::Sockets::IPProtectionLevel IPProtectionLevel { System::Net::Sockets::IPProtectionLevel get(); void set(System::Net::Sockets::IPProtectionLevel value); };
[System.Configuration.ConfigurationProperty("ipProtectionLevel", DefaultValue=System.Net.Sockets.IPProtectionLevel.Unspecified)]
public System.Net.Sockets.IPProtectionLevel IPProtectionLevel { get; set; }
[<System.Configuration.ConfigurationProperty("ipProtectionLevel", DefaultValue=System.Net.Sockets.IPProtectionLevel.Unspecified)>]
member this.IPProtectionLevel : System.Net.Sockets.IPProtectionLevel with get, set
Public Property IPProtectionLevel As IPProtectionLevel

Valeur de propriété

Valeur de l’instance IPProtectionLevel actuelle.

Attributs

Remarques

La IPProtectionLevel propriété active la configuration d’une restriction pour un socket IPv6 dans une étendue spécifiée, par exemple des adresses avec le même préfixe local de lien ou de site. Cette option permet aux applications de placer des restrictions d’accès sur des sockets IPv6. Ces restrictions permettent à une application s’exécutant sur un réseau local privé de se renforcer simplement et robustement contre les attaques externes. Cette option s’étend ou limite l’étendue d’un socket d’écoute, ce qui permet un accès illimité à partir d’utilisateurs publics et privés, le cas échéant, ou limite l’accès uniquement au même site, selon les besoins. Cette option a trois niveaux de protection définis spécifiés dans l’énumération System.Net.Sockets.IPProtectionLevel .

S’applique à

Voir aussi