# IOpcDataStore Members

> Reference: Defines mechanisms to store and retrieve data using OPC UA defined techniques to store and locate information.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">IOpcDataStore</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>

## Methods

### Get

Retrieves the value of the of the entry accessible through the `name` specified.

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

```csharp
T Get<T>(string name = "")
```

</div>

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

```vbnet
Function [Get](Of T)(name As String = "") As T
```

</div>

**Type parameters**

| Name | Description |
|---|---|
| `T` | The type of the value to query. |

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The [string](https://learn.microsoft.com/dotnet/api/system.string) to use to identify the entry its value is to be retrieved. Optional, default `""`. |

**Returns**

T

The `T` of the value of the entry requested or the default value if the value is not of the type specified by `T`.

### Set

Stores the `value` of the entry accessible throught the `name` specified.

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

```csharp
void Set<T>(string name = "", T value = default)
```

</div>

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

```vbnet
Sub [Set](Of T)(name As String = "", value As T = Nothing)
```

</div>

**Type parameters**

| Name | Description |
|---|---|
| `T` | The type of `value` to store. |

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The [string](https://learn.microsoft.com/dotnet/api/system.string) to use to identify the entry its value is to be stored. Optional, default `""`. |
| `value` | T | The `T` to associate with the entry accesibly by the `name` specified. Optional, default `default`. |
