UnicastIPAddressInformation 类

定义

提供有关网络接口的单播地址的信息。Provides information about a network interface's unicast address.

public ref class UnicastIPAddressInformation abstract : System::Net::NetworkInformation::IPAddressInformation
public abstract class UnicastIPAddressInformation : System.Net.NetworkInformation.IPAddressInformation
type UnicastIPAddressInformation = class
    inherit IPAddressInformation
Public MustInherit Class UnicastIPAddressInformation
Inherits IPAddressInformation
继承
UnicastIPAddressInformation

注解

不创建此类的实例;实例在由UnicastAddresses属性返回的数组中返回。You do not create instances of this class; instances are returned in the array returned by the UnicastAddresses property.

构造函数

UnicastIPAddressInformation()

初始化 UnicastIPAddressInformation 类的新实例。Initializes a new instance of the UnicastIPAddressInformation class.

属性

Address

获取 Internet 协议 (IP) 地址。Gets the Internet Protocol (IP) address.

(继承自 IPAddressInformation)
AddressPreferredLifetime

获取此地址作为首选地址的剩余秒数。Gets the number of seconds remaining during which this address is the preferred address.

AddressValidLifetime

获取此地址保持有效的剩余秒数。Gets the number of seconds remaining during which this address is valid.

DhcpLeaseLifetime

指定此 IP 地址的动态主机配置协议 (DHCP) 租约的剩余时间量。Specifies the amount of time remaining on the Dynamic Host Configuration Protocol (DHCP) lease for this IP address.

DuplicateAddressDetectionState

获取一个值,该值指示重复地址检测算法的状态。Gets a value that indicates the state of the duplicate address detection algorithm.

IPv4Mask

获取 IPv4 掩码。Gets the IPv4 mask.

IsDnsEligible

获取一个 Boolean 值,该值指示 Internet 协议 (IP) 地址出现在域名系统 (DNS) 服务器数据库中时是否有效。Gets a Boolean value that indicates whether the Internet Protocol (IP) address is valid to appear in a Domain Name System (DNS) server database.

(继承自 IPAddressInformation)
IsTransient

获取一个 Boolean 值,该值指示 Internet 协议 (IP) 地址是否为瞬态(群集地址)。Gets a Boolean value that indicates whether the Internet Protocol (IP) address is transient (a cluster address).

(继承自 IPAddressInformation)
PrefixLength

获取 IP 地址的前缀或网络部分的长度(以位为单位)。Gets the length, in bits, of the prefix or network part of the IP address.

PrefixOrigin

获取一个值,该值标识单播 Internet 协议 (IP) 地址前缀的源。Gets a value that identifies the source of a unicast Internet Protocol (IP) address prefix.

SuffixOrigin

获取一个值,该值标识单播 Internet 协议 (IP) 地址后缀的源。Gets a value that identifies the source of a unicast Internet Protocol (IP) address suffix.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于