NetworkAdapter NetworkAdapter NetworkAdapter NetworkAdapter Class

Represents a network adapter.

Syntax

Declaration

public sealed class NetworkAdapterpublic sealed class NetworkAdapterPublic NotInheritable Class NetworkAdapterpublic sealed class NetworkAdapter

Properties summary

Gets a value indicating the network interface type as defined by the Internet Assigned Names Authority (IANA) for the NetworkAdapter.

Gets a value indicating the maximum inbound data transfer rate in bits per second.

Gets the network adapter ID.

Gets the NetworkItem object that represents the connected network.

Gets a value indicating the maximum outbound speed in bits per second.

Methods summary

Gets the connection profile currently associated with the network adapter.

Properties

  • IanaInterfaceType
    IanaInterfaceType
    IanaInterfaceType
    IanaInterfaceType

    Gets a value indicating the network interface type as defined by the Internet Assigned Names Authority (IANA) for the NetworkAdapter.

    public uint IanaInterfaceType { get; }public uint IanaInterfaceType { get; }Public ReadOnly Property IanaInterfaceType As uintpublic uint IanaInterfaceType { get; }

    Property Value

    • uint
      uint
      uint
      uint

      The interface type as defined by the Internet Assigned Names Authority (IANA).

      The table below lists common values for the interface type although many other values are possible.

    Remarks

    This property represents the interface type as defined by the Internet Assigned Names Authority (IANA). For a list of possible values, see http://www.iana.org/assignments/ianaiftype-mib.

  • InboundMaxBitsPerSecond
    InboundMaxBitsPerSecond
    InboundMaxBitsPerSecond
    InboundMaxBitsPerSecond

    Gets a value indicating the maximum inbound data transfer rate in bits per second.

    public ulong InboundMaxBitsPerSecond { get; }public ulong InboundMaxBitsPerSecond { get; }Public ReadOnly Property InboundMaxBitsPerSecond As ulongpublic ulong InboundMaxBitsPerSecond { get; }

    Property Value

    • ulong
      ulong
      ulong
      ulong

      The maximum inbound transfer rate in bits per second.

    Remarks

    This value represents the maximum speed of the interface and is generally much higher than the actual transfer speed while receiving network data, particularly for wireless networks.

  • NetworkAdapterId
    NetworkAdapterId
    NetworkAdapterId
    NetworkAdapterId

    Gets the network adapter ID.

    public Guid NetworkAdapterId { get; }public Guid NetworkAdapterId { get; }Public ReadOnly Property NetworkAdapterId As Guidpublic Guid NetworkAdapterId { get; }

    Property Value

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

      The network adapter ID.

  • NetworkItem
    NetworkItem
    NetworkItem
    NetworkItem

    Gets the NetworkItem object that represents the connected network.

    public NetworkItem NetworkItem { get; }public NetworkItem NetworkItem { get; }Public ReadOnly Property NetworkItem As NetworkItempublic NetworkItem NetworkItem { get; }

    Property Value

  • OutboundMaxBitsPerSecond
    OutboundMaxBitsPerSecond
    OutboundMaxBitsPerSecond
    OutboundMaxBitsPerSecond

    Gets a value indicating the maximum outbound speed in bits per second.

    public ulong OutboundMaxBitsPerSecond { get; }public ulong OutboundMaxBitsPerSecond { get; }Public ReadOnly Property OutboundMaxBitsPerSecond As ulongpublic ulong OutboundMaxBitsPerSecond { get; }

    Property Value

    • ulong
      ulong
      ulong
      ulong

      The maximum outbound transfer rate in bits per second.

    Remarks

    This property represents the current speed in bits per second of the transmit link for the NetworkAdapter. This value represents the maximum speed of the interface and is generally much higher than the actual speed when sending network data on this link, particularly for wireless networks.

Methods

  • GetConnectedProfileAsync()
    GetConnectedProfileAsync()
    GetConnectedProfileAsync()
    GetConnectedProfileAsync()

    Gets the connection profile currently associated with the network adapter.

    public IAsyncOperation<ConnectionProfile> GetConnectedProfileAsync()public IAsyncOperation<ConnectionProfile> GetConnectedProfileAsync()Public Function GetConnectedProfileAsync() As IAsyncOperation( Of ConnectionProfile )public IAsyncOperation<ConnectionProfile> GetConnectedProfileAsync()

    Returns

    • The connection profile associated with this network adapter.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

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

Details

Assembly

Windows.Networking.Connectivity.dll