IPVersions Enum
System.Net
Summary
Specifies the IP version to use.
Remarks
This enumeration is used by various networking classes in the System.Net
namespace to indicate whether to use IPv4 or IPv6 protocols. For example, the AddressFamily
enumeration uses IPVersions
to define address family types.
Members
Member | Value | Description |
---|---|---|
IPv4 | 2 | Specifies the IPv4 protocol. |
IPv6 | 23 | Specifies the IPv6 protocol. |
Requirements
Namespace:System.Net
Assembly:System.Net.Primitives
(in System.Net.Primitives.dll
)
.NET Framework versions: Supports .NET Framework 2.0 and later, .NET Core, .NET 5+