# OpcLocaleCollection Members

> Reference: Represents a collection of string values identifying different cultures (also known as CultureInfo).

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcLocaleCollection</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Inherits members from [Collection&lt;String&gt;](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1).

## Constructors

### OpcLocaleCollection

<span class="api-meta">2 overloads</span>

| Overload | Description |
|---|---|
| [OpcLocaleCollection()](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opclocalecollection/members#opclocalecollection-noparams) | Initializes a new instance of the [OpcLocaleCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opclocalecollection/) class. |
| [OpcLocaleCollection(IList&lt;string&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opclocalecollection/members#opclocalecollection-system-collections-generic-ilist-of-system-string) | Initializes a new instance of the [OpcLocaleCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opclocalecollection/) class as a wrapper for the specified `list`. |

#### OpcLocaleCollection()

Initializes a new instance of the [OpcLocaleCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opclocalecollection/) class.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcLocaleCollection()
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New()
```

</div>

#### OpcLocaleCollection(IList&lt;string&gt;)

Initializes a new instance of the [OpcLocaleCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opclocalecollection/) class as a wrapper for the specified `list`.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcLocaleCollection(IList<string> list)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(list As IList(Of String))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `list` | [IList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)&lt;[String](https://learn.microsoft.com/dotnet/api/system.string)&gt; | The [IList&lt;T&gt;](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1) of [string](https://learn.microsoft.com/dotnet/api/system.string) values to wrap. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `list` is a null reference (Nothing in Visual Basic). |

## Methods

### Add

<span class="api-meta">since v2.11</span>

Adds the [Name](https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo.name) of the `culture` to the end of the [OpcLocaleCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opclocalecollection/).

<div class="api-signature" data-lang="csharp">

```csharp
public void Add(CultureInfo culture)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub Add(culture As CultureInfo)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `culture` | [CultureInfo](https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo) | The [CultureInfo](https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo) its [Name](https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo.name) is to be added to the end of the [OpcLocaleCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opclocalecollection/). |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `culture` is a null reference (Nothing in Visual Basic). |
