Export (0) Print
Expand All

SocketElement.IPProtectionLevel Property

Gets or sets a value that specifies the default System.Net.Sockets.IPProtectionLevel to use for a socket.

Namespace:  System.Net.Configuration
Assembly:  System (in System.dll)

[ConfigurationPropertyAttribute("ipProtectionLevel", DefaultValue = IPProtectionLevel.Unspecified)]
public IPProtectionLevel IPProtectionLevel { get; set; }

Property Value

Type: System.Net.Sockets.IPProtectionLevel
The value of the System.Net.Sockets.IPProtectionLevel for the current instance.

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.

.NET Framework

Supported in: 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft