NetworkAdapter NetworkAdapter NetworkAdapter Class

Definition

Represents a network adapter.

public sealed class NetworkAdapter : INetworkAdapterpublic sealed class NetworkAdapter : INetworkAdapterPublic NotInheritable Class NetworkAdapter Implements INetworkAdapter
Attributes
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)

Properties

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 uint
Value
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.

Attributes

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

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 ulong
Value
ulong ulong ulong

The maximum inbound transfer rate in bits per second.

Attributes

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

Gets the network adapter ID.

public Guid NetworkAdapterId { get; }public Guid NetworkAdapterId { get; }Public ReadOnly Property NetworkAdapterId As Guid
Value
System.Guid System.Guid System.Guid

The network adapter ID.

Attributes

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 NetworkItem
Value
NetworkItem NetworkItem NetworkItem

The connected network.

Attributes

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 ulong
Value
ulong ulong ulong

The maximum outbound transfer rate in bits per second.

Attributes

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()

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 )
Returns

The connection profile associated with this network adapter.

Attributes