IPInformation 类

定义

表示 IP 地址与网络上的适配器之间的关联。

public ref class IPInformation sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class IPInformation final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class IPInformation
Public NotInheritable Class IPInformation
继承
Object Platform::Object IInspectable IPInformation
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

属性

NetworkAdapter

检索与 IP 地址关联的网络适配器。

PrefixLength

检索前缀的长度,或 IP 地址的网络部分。

适用于

另请参阅