Skip to main content

Class NativeNetworkAdapterCollection

Provides a collection of .NET native network adapters

Assembly: Meadow.dll
View Source
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
public INetworkAdapter this[int index] { get; }

Methods

GetEnumerator()

Gets an enumerator for the collection

View Source
public IEnumerator<INetworkAdapter> GetEnumerator()
Returns

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

Refresh()

Refreshes the collection

View Source
public Task Refresh()
Returns

System.Threading.Tasks.Task

Events

NetworkConnected

Event raised when a network is connected on any adapter

View Source
public event NetworkConnectionHandler NetworkConnected
Event Type

Meadow.Hardware.NetworkConnectionHandler

NetworkDisconnected

Event raised when a network is disconnected on any adapter

View Source
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[])