Interface INetworkAdapterCollection
Provides an abstraction for a collection of INetworkAdapters
Assembly: Meadow.Contracts.dll
View Source
public interface INetworkAdapterCollection : IEnumerable<INetworkAdapter>, IEnumerable
Properties
Count
Gets the number of network adapters in the collection
View Source
int Count { get; }
this[int]
Retrieves an INEtworkAdapter from the collection by index
View Source
INetworkAdapter this[int index] { get; }
Methods
Primary<T>()
Retrieves the first registered INetworkAdapter matching the requested type
View Source
T? Primary<T>() where T : INetworkAdapter
Returns
<T>
Type Parameters
T
Refresh()
Refreshes the collection of Adapters
View Source
Task Refresh()
Returns
System.Threading.Tasks.Task
Events
NetworkConnected
Event raised when a network is connected on any adapter
View Source
event NetworkConnectionHandler NetworkConnected
Event Type
Meadow.Hardware.NetworkConnectionHandler
NetworkDisconnected
Event raised when a network is disconnected on any adapter
View Source
event NetworkDisconnectionHandler NetworkDisconnected
Event Type
Meadow.Hardware.NetworkDisconnectionHandler
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[])