Skip to content

Reference

IPAddressCollection Members

Represents a collection of IPAddress objects.

Reference

IPAddressCollection Members ​

Type
IPAddressCollection
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Inherits members from Collection<IPAddress>.

Constructors ​

IPAddressCollection ​

2 overloads

OverloadDescription
IPAddressCollection()Initializes a new instance of the IPAddressCollection class.
IPAddressCollection(IList<IPAddress>)Initializes a new instance of the IPAddressCollection class as a wrapper for the specified list.

IPAddressCollection() ​

Initializes a new instance of the IPAddressCollection class.

csharp
public IPAddressCollection()
vbnet
Public Sub New()

IPAddressCollection(IList<IPAddress>) ​

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

csharp
public IPAddressCollection(IList<IPAddress> list)
vbnet
Public Sub New(list As IList(Of IPAddress))

Parameters

NameTypeDescription
listIList<IPAddress>The list that is wrapped by the new collection.

Exceptions

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

Methods ​

Add ​

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

csharp
public void Add(string ipAddress)
vbnet
Public Sub Add(ipAddress As String)

Parameters

NameTypeDescription
ipAddressStringThe string to be parsed and added to the end of the IPAddressCollection.

Exceptions

ExceptionCondition
ArgumentExceptionThe ipAddress is an empty string.
ArgumentNullExceptionThe ipAddress is a null reference (Nothing in Visual Basic).
FormatExceptionThe ipAddress is not a valid IP address.

Remove ​

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

csharp
public void Remove(string ipAddress)
vbnet
Public Sub Remove(ipAddress As String)

Parameters

NameTypeDescription
ipAddressStringThe string to be parsed to an IPAddress which is to be removed from the IPAddressCollection.

Exceptions

ExceptionCondition
ArgumentExceptionThe ipAddress is an empty string.
ArgumentNullExceptionThe ipAddress is a null reference (Nothing in Visual Basic).
FormatExceptionThe ipAddress is not a valid IP address.