Table of Contents

Class NetworkAdapterCollection

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents a collection of network adapters.

public class NetworkAdapterCollection : Collection<NetworkAdapter>, IList<NetworkAdapter>, ICollection<NetworkAdapter>, IList, ICollection, IReadOnlyList<NetworkAdapter>, IReadOnlyCollection<NetworkAdapter>, IEnumerable<NetworkAdapter>, IEnumerable
Inheritance
NetworkAdapterCollection
Implements
Inherited Members

Constructors

NetworkAdapterCollection()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.NetworkAdapterCollection class.

public NetworkAdapterCollection()

Methods

FindByIndex(int)

Returns the network adapter with the specified index or null if no adapter with the specified index is found.

public NetworkAdapter FindByIndex(int index)

Parameters

index int

The unique index of the network adapter to return.

Returns

NetworkAdapter

The network adapter with the specified index, or null if no network adapter with that index is found.

FindByInterfaceIndex(int)

Returns the network adapter with the specified interface index or null if no adapter with the specified interface index is found.

public NetworkAdapter FindByInterfaceIndex(int interfaceIndex)

Parameters

interfaceIndex int

The unique index of the network adapter to return.

Returns

NetworkAdapter

The network adapter with the specified interface index, or null if no network adapter with that index is found.

Sort()

Sorts the values in the collection.

public void Sort()

ToString()

Returns the names of the network adapters in the collection, one per line.

public override string ToString()

Returns

string

The names of the network adapters in the collection, one per line.