NetworkItem NetworkItem NetworkItem NetworkItem Class

Represents a connected network.

Syntax

Declaration

public sealed class NetworkItempublic sealed class NetworkItemPublic NotInheritable Class NetworkItem

Properties summary

Gets the network ID.

Methods summary

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

Properties

  • NetworkId
    NetworkId
    NetworkId
    NetworkId

    Gets the network ID.

    public Guid NetworkId { get; }public Guid NetworkId { get; }Public ReadOnly Property NetworkId As Guid

    Property Value

    • System.Guid
      System.Guid
      System.Guid
      System.Guid

      The network ID.

    Remarks

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

Methods

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Networking.Connectivity.dll