System.Net.NetworkInformation.PrefixOrigin Enumeration

Specifies how an IP address network prefix was located.

Syntax

public enum PrefixOrigin

Remarks

IP addresses are divided into two parts: the prefix and the suffix. The address prefix identifies the network portion of an IP address, and the address suffix identifies the host portion. Prefixes are assigned by global authorities, and suffixes are assigned by local system administrators.

This enumeration is used by the System.Net.NetworkInformation.UnicastIPAddressInformation and System.Net.NetworkInformation.MulticastIPAddressInformation classes. Instances of this class are returned when you retrieve the address information for a System.Net.NetworkInformation.NetworkInterface object.

Members

Member NameDescription
Dhcp

The prefix was supplied by a Dynamic Host Configuration Protocol (DHCP) server.

Manual

The prefix was manually configured.

Other

The prefix was located using an unspecified source.

RouterAdvertisement

The prefix was supplied by a router advertisement.

WellKnown

The prefix is a well-known prefix. Well-known prefixes are specified in standard-track Request for Comments (RFC) documents and assigned by the Internet Assigned Numbers Authority (Iana) or an address registry. Such prefixes are reserved for special purposes.

Requirements

Namespace: System.Net.NetworkInformation
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0