NetworkItem NetworkItem NetworkItem NetworkItem NetworkItem Class


Represents a connected network.

public : sealed class NetworkItem : INetworkItem
struct winrt::Windows::Networking::Connectivity::NetworkItem : INetworkItem
public sealed class NetworkItem : INetworkItem
Public NotInheritable Class NetworkItem Implements INetworkItem
// This class does not provide a public constructor.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


NetworkId NetworkId NetworkId NetworkId NetworkId

Gets the network ID.

public : Platform::Guid NetworkId { get; }
Guid NetworkId();
public Guid NetworkId { get; }
Public ReadOnly Property NetworkId As Guid
var guid = networkItem.networkId;
Guid Guid Guid

The network ID.


This value can be used to retrieve the unique ID of a network if NetworkTypes is Private.


GetNetworkTypes() GetNetworkTypes() GetNetworkTypes() GetNetworkTypes() GetNetworkTypes()

Gets a NetworkTypes value indicating the network type for a NetworkItem.

public : NetworkTypes GetNetworkTypes()
NetworkTypes GetNetworkTypes() const;
public NetworkTypes GetNetworkTypes()
Public Function GetNetworkTypes() As NetworkTypes
var networkTypes = networkItem.getNetworkTypes();

The type of a network.

See Also