Skip to main content

Class NativeNetworkAdapterCollection

Provides a collection of .NET native network adapters

Assembly: Meadow.dll
View Source
Declaration
public class NativeNetworkAdapterCollection : INetworkAdapterCollection, IEnumerable<INetworkAdapter>, IEnumerable

Implements:
Meadow.Hardware.INetworkAdapterCollection, System.Collections.Generic.IEnumerable<Meadow.Hardware.INetworkAdapter>, System.Collections.IEnumerable

Properties

this[int]

Gets an INetworkAdapter from the collection at a specified index

View Source
Declaration
public INetworkAdapter this[int index] { get; }

Methods

GetEnumerator()

Gets an enumerator for the collection

View Source
Declaration
public IEnumerator<INetworkAdapter> GetEnumerator()
Returns

System.Collections.Generic.IEnumerator<Meadow.Hardware.INetworkAdapter>

Refresh()

Refreshes the collection

View Source
Declaration
public Task Refresh()
Returns

System.Threading.Tasks.Task

Events

NetworkConnected

Event raised when a network is connected on any adapter

View Source
Declaration
public event NetworkConnectionHandler NetworkConnected
Event Type

Meadow.Hardware.NetworkConnectionHandler

NetworkDisconnected

Event raised when a network is disconnected on any adapter

View Source
Declaration
public event NetworkDisconnectionHandler NetworkDisconnected
Event Type

Meadow.Hardware.NetworkDisconnectionHandler

Implements

Extension Methods

  • System.Collections.Generic.IEnumerable{Meadow.Hardware.INetworkAdapter}.Meadow.ExtensionMethods.Contains``1(Meadow.Hardware.INetworkAdapter[])
  • System.Collections.Generic.IEnumerable{Meadow.Hardware.INetworkAdapter}.Meadow.ExtensionMethods.FirstIndexOf``1(Meadow.Hardware.INetworkAdapter[])