IPInterfaceProperties.GetIPv4Properties 方法

定义

提供此网络接口的 Internet 协议版本 4 (IPv4) 配置数据。Provides Internet Protocol version 4 (IPv4) configuration data for this network interface.

public:
 abstract System::Net::NetworkInformation::IPv4InterfaceProperties ^ GetIPv4Properties();
public abstract System.Net.NetworkInformation.IPv4InterfaceProperties GetIPv4Properties ();
abstract member GetIPv4Properties : unit -> System.Net.NetworkInformation.IPv4InterfaceProperties
Public MustOverride Function GetIPv4Properties () As IPv4InterfaceProperties

返回

IPv4InterfaceProperties

IPv4InterfaceProperties包含 IPv4 配置数据的对象。An IPv4InterfaceProperties object that contains IPv4 configuration data.

例外

此接口不支持 IPv4 协议。The interface does not support the IPv4 protocol.

注解

有关对支持 IPv4 的接口可用信息的详细说明,请参阅 IPv4InterfaceProperties 类文档。For a detailed description of the information available for an interface that supports IPv4, see the IPv4InterfaceProperties class documentation. 请注意,方法返回的对象 GetIPv4Properties 反映了创建对象时的配置。Note that the object returned by the GetIPv4Properties method reflects the configuration as of the time the object is created. 此信息不会动态更新。This information is not updated dynamically.

适用于