共用方式為


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

取得網路識別碼。

方法

GetNetworkTypes()

取得 NetworkTypes 值,指出 NetworkItem的網路類型。

適用於