Table of Contents

Class NetworkingDeviceConnectedDeviceCollection

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

Represents a collection of devices connected to a networking device.

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

Constructors

NetworkingDeviceConnectedDeviceCollection()

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

public NetworkingDeviceConnectedDeviceCollection()

Methods

Add(int, string)

Adds a new connected device to the collection.

public NetworkingDeviceConnectedDevice Add(int portIndex, string macAddress)

Parameters

portIndex int

The port index of the connected device.

macAddress string

The MAC address of the connected device.

Returns

NetworkingDeviceConnectedDevice

The CENTREL.XIA.Configuration.Types.NetworkingDeviceConnectedDevice that was added to the collection.

Exists(int)

Returns a System.Boolean value that indicates whether a connected device is found within the collection for the specified port index.

public bool Exists(int portIndex)

Parameters

portIndex int

The port index of the CENTREL.XIA.Configuration.Types.NetworkingDeviceConnectedDevice to locate.

Returns

bool

A System.Boolean value that indicates whether a connected device is found within the collection for the specified port index.

FindByPortIndex(int)

Returns the CENTREL.XIA.Configuration.Types.NetworkingDeviceConnectedDevice with the specified port index, or null if no CENTREL.XIA.Configuration.Types.NetworkingDeviceConnectedDevice with that port index is found.

public NetworkingDeviceConnectedDevice FindByPortIndex(int portIndex)

Parameters

portIndex int

The port index of the CENTREL.XIA.Configuration.Types.NetworkingDeviceConnectedDevice to locate.

Returns

NetworkingDeviceConnectedDevice

The CENTREL.XIA.Configuration.Types.NetworkingDeviceConnectedDevice with the specified port index.

GetMacAddressByPort(int)

Returns a System.String value that indicates the MAC address of the device connected to the specified port, or String.Empty if no device is connected to that port.

public string GetMacAddressByPort(int portIndex)

Parameters

portIndex int

The port index of the CENTREL.XIA.Configuration.Types.NetworkingDeviceConnectedDevice to locate.

Returns

string

A System.String value that indicates the MAC address of the device connected to the specified port, or String.Empty if no device is connected to that port.

Sort()

Sorts the values in the collection.

public void Sort()