Editare

Partajați prin


SocketElement.IPProtectionLevel Property

Definition

Gets or sets a value that specifies the default IPProtectionLevel to use for a 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

Property Value

The value of the IPProtectionLevel for the current instance.

Attributes

Remarks

The IPProtectionLevel property enables configuration of a restriction for an IPv6 socket to a specified scope, such as addresses with the same link local or site local prefix. This option enables applications to place access restrictions on IPv6 sockets. Such restrictions enable an application running on a private LAN to simply and robustly harden itself against external attacks. This option widens or narrows the scope of a listening socket, enabling unrestricted access from public and private users when appropriate, or restricting access only to the same site, as required. This option has three defined protection levels specified in the System.Net.Sockets.IPProtectionLevel enumeration.

Applies to

See also