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