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
| Overload | Description |
|---|---|
| IPAddress | Initializes a new instance of the IPAddress |
| IPAddress | Initializes a new instance of the IPAddresslist. |
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
| Name | Type | Description |
|---|---|---|
list | IList<IPAddress> | The list that is wrapped by the new collection. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The list is a null reference ( |
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
| Name | Type | Description |
|---|---|---|
ipAddress | String | The string to be parsed and added to the end of the IPAddress |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The ipAddress is an empty string. |
| Argument | The ipAddress is a null reference ( |
| FormatException | The 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
| Name | Type | Description |
|---|---|---|
ipAddress | String | The string to be parsed to an IPAddress which is to be removed from the IPAddress |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The ipAddress is an empty string. |
| Argument | The ipAddress is a null reference ( |
| FormatException | The ipAddress is not a valid IP address. |

