SocketElement.IPProtectionLevel Propiedad

Definición

Obtiene o establece un valor que especifica el objeto IPProtectionLevel predeterminado que se ha de utilizar para 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

Valor de propiedad

El valor del objeto IPProtectionLevel para la instancia actual.

Atributos

Comentarios

La propiedad IPProtectionLevel permite configurar una restricción para un socket IPv6 a un ámbito especificado, como las direcciones con el mismo prefijo local de enlace o local de sitio. Esta opción permite a las aplicaciones colocar restricciones de acceso en sockets IPv6. Estas restricciones permiten que una aplicación que se ejecuta en una LAN privada se fortalezca de forma sencilla frente a ataques externos. Esta opción amplía o reduce el ámbito de un socket de escucha, lo que permite el acceso no restringido de usuarios públicos y privados cuando sea adecuado o restringe el acceso únicamente al mismo sitio, según necesidad. Esta opción tiene tres niveles de protección definidos especificados en la System.Net.Sockets.IPProtectionLevel enumeración .

Se aplica a

Consulte también