NetworkItem 类

定义

表示连接的网络。

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

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 中引入)

属性

NetworkId

获取网络 ID。

方法

GetNetworkTypes()

获取 一个 NetworkTypes 值,该值指示 NetworkItem 的网络类型。

适用于