IPAddressCollection Members

Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The IPAddressCollection type exposes the following members.

IPAddressCollection()

Initializes a new instance of the IPAddressCollection class.

C#

public IPAddressCollection()

IPAddressCollection(IList<IPAddress>)

Initializes a new instance of the IPAddressCollection class as a wrapper for the specified list.

C#

public IPAddressCollection(IList<IPAddress> list)


Parameters

list IList<IPAddress>

The list that is wrapped by the new collection.


Exceptions

ArgumentNullException

The list is a null reference (Nothing in Visual Basic).

Add(String)

Adds a string formatted IPAddress to the end of the IPAddressCollection.

C#

public void Add(string ipAddress)


Parameters

ipAddress String

The String to be parsed and added to the end of the IPAddressCollection.



Exceptions

ArgumentException

The ipAddress is an empty string.

ArgumentNullException

The ipAddress is a null reference (Nothing in Visual Basic).

FormatException

The ipAddress is not a valid IP address.

Remove(String)

Removes the first occurrence of a string formatted IPAddress from the IPAddressCollection.

C#

public void Remove(string ipAddress)


Parameters

ipAddress String

The String to be parsed to an IPAddress which is to be removed from the IPAddressCollection.



Exceptions

ArgumentException

The ipAddress is an empty string.

ArgumentNullException

The ipAddress is a null reference (Nothing in Visual Basic).

FormatException

The ipAddress is not a valid IP address.