Condividi tramite


SocketElement.IPProtectionLevel Proprietà

Definizione

Ottiene o imposta un valore che specifica l'impostazione predefinita IPProtectionLevel da utilizzare per 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

Valore della proprietà

Valore di IPProtectionLevel per l'istanza corrente.

Attributi

Commenti

La IPProtectionLevel proprietà abilita la configurazione di una restrizione per un socket IPv6 a un ambito specificato, ad esempio indirizzi con lo stesso prefisso locale o locale del sito. Questa opzione consente alle applicazioni di applicare restrizioni di accesso ai socket IPv6. Tali restrizioni consentono a un'applicazione in esecuzione in una LAN privata di rafforzare in modo semplice e affidabile se stessa contro gli attacchi esterni. Questa opzione estende o restringe l'ambito di un socket di ascolto, abilitando l'accesso senza restrizioni da utenti pubblici e privati quando appropriato o limitando l'accesso solo allo stesso sito, come richiesto. Questa opzione include tre livelli di protezione definiti specificati nell'enumerazione System.Net.Sockets.IPProtectionLevel .

Si applica a

Vedi anche