> ## Documentation Index
> Fetch the complete documentation index at: https://help.cryptolens.io/llms.txt
> Use this file to discover all available pages before exploring further.

# .NET: Data

> Signatures, models and behavior for SKM.V3.Methods.Data in the .NET SDK 4.0.54.

Methods that perform operations on a data object. A complete list
can be found here: [Data](https://help.cryptolens.io/api-reference/generated/Data.md)

**Namespace:** `SKM.V3.Methods`\
**Version:** 4.0.54. Both packages; all six documented target frameworks.

```csharp C# theme={null}
public class Data
```

```vb VB.NET theme={null}
Public Class Data
```

These methods return a result object. Check `Result == ResultType.Success` before using its data. In version 4.0.54, handled request and JSON errors normally return `ResultType.Error` with a diagnostic `Message`. A non-null result alone does not mean the request succeeded. See [Request Errors](https://help.cryptolens.io/libraries/dotnet-reference/settings.md#request-errors).

## Constructors

### Data()

Creates an empty Data object. This constructor does not send an API request.

```csharp C# theme={null}
public Data()
```

```vb VB.NET theme={null}
Public Sub New()
```

## Methods

### AddDataObject(string, AddDataObjectModel)

Creates a new [`DataObject`](https://help.cryptolens.io/libraries/dotnet-reference/data-object).

```csharp C# theme={null}
public static DataObjectIdResult AddDataObject(string token, AddDataObjectModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function AddDataObject(token As String, parameters As AddDataObjectModel) As DataObjectIdResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/AddDataObject.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`AddDataObjectModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/add-data-object-model) | The parameters that the method needs |

**Returns:** [`DataObjectIdResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/data-object-id-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[AddDataObject](https://help.cryptolens.io/api-reference/generated/AddDataObject.md)

### AddDataObject(string, AddDataObjectToKeyModel)

Creates a new [`DataObject`](https://help.cryptolens.io/libraries/dotnet-reference/data-object) for a key.

```csharp C# theme={null}
public static DataObjectIdResult AddDataObject(string token, AddDataObjectToKeyModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function AddDataObject(token As String, parameters As AddDataObjectToKeyModel) As DataObjectIdResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/AddDataObject.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`AddDataObjectToKeyModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/add-data-object-to-key-model) | The parameters that the method needs |

**Returns:** [`DataObjectIdResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/data-object-id-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[AddDataObject](https://help.cryptolens.io/api-reference/generated/AddDataObject.md)

### AddDataObject(string, AddDataObjectToMachineCodeModel)

Creates a new [`DataObject`](https://help.cryptolens.io/libraries/dotnet-reference/data-object) for a machine code.

```csharp C# theme={null}
public static DataObjectIdResult AddDataObject(string token, AddDataObjectToMachineCodeModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function AddDataObject(token As String, parameters As AddDataObjectToMachineCodeModel) As DataObjectIdResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/AddDataObject.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`AddDataObjectToMachineCodeModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/add-data-object-to-machine-code-model) | The parameters that the method needs |

**Returns:** [`DataObjectIdResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/data-object-id-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[AddDataObject](https://help.cryptolens.io/api-reference/generated/AddDataObject.md)

### DecrementIntValue(string, ChangeIntValueModel)

This method will decrement the current int value by the one specified as an input parameter,
i.e. [`IntValue`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-int-value-model#int-value-50c693e9f7).

```csharp C# theme={null}
public static BasicResult DecrementIntValue(string token, ChangeIntValueModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function DecrementIntValue(token As String, parameters As ChangeIntValueModel) As BasicResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/DecrementIntValue.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`ChangeIntValueModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-int-value-model) | The parameters that the method needs |

**Returns:** [`BasicResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/basic-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[DecrementIntValue](https://help.cryptolens.io/api-reference/generated/DecrementIntValue.md)

### DecrementIntValue(string, ChangeIntValueToKeyModel)

This method will decrement the current int value by the one specified as an input parameter,
i.e. [`IntValue`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-int-value-model#int-value-50c693e9f7).

```csharp C# theme={null}
public static BasicResult DecrementIntValue(string token, ChangeIntValueToKeyModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function DecrementIntValue(token As String, parameters As ChangeIntValueToKeyModel) As BasicResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/DecrementIntValue.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`ChangeIntValueToKeyModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-int-value-to-key-model) | The parameters that the method needs |

**Returns:** [`BasicResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/basic-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[DecrementIntValue](https://help.cryptolens.io/api-reference/generated/DecrementIntValue.md)

### DecrementIntValue(string, ChangeIntValueToMachineCodeModel)

This method will decrement the current int value by the one specified as an input parameter,
i.e. [`IntValue`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-int-value-model#int-value-50c693e9f7).

```csharp C# theme={null}
public static BasicResult DecrementIntValue(string token, ChangeIntValueToMachineCodeModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function DecrementIntValue(token As String, parameters As ChangeIntValueToMachineCodeModel) As BasicResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/DecrementIntValue.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`ChangeIntValueToMachineCodeModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-int-value-to-machine-code-model) | The parameters that the method needs |

**Returns:** [`BasicResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/basic-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[DecrementIntValue](https://help.cryptolens.io/api-reference/generated/DecrementIntValue.md)

### IncrementIntValue(string, ChangeIntValueModel)

This method will increment the current int value by the one specified as an input parameter,
i.e. [`IntValue`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-int-value-model#int-value-50c693e9f7).

```csharp C# theme={null}
public static BasicResult IncrementIntValue(string token, ChangeIntValueModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function IncrementIntValue(token As String, parameters As ChangeIntValueModel) As BasicResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/IncrementIntValue.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`ChangeIntValueModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-int-value-model) | The parameters that the method needs |

**Returns:** [`BasicResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/basic-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[IncrementIntValue](https://help.cryptolens.io/api-reference/generated/IncrementIntValue.md)

### IncrementIntValue(string, ChangeIntValueToKeyModel)

This method will increment the current int value by the one specified as an input parameter,
i.e. [`IntValue`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-int-value-model#int-value-50c693e9f7).

```csharp C# theme={null}
public static BasicResult IncrementIntValue(string token, ChangeIntValueToKeyModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function IncrementIntValue(token As String, parameters As ChangeIntValueToKeyModel) As BasicResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/IncrementIntValue.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`ChangeIntValueToKeyModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-int-value-to-key-model) | The parameters that the method needs |

**Returns:** [`BasicResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/basic-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[IncrementIntValue](https://help.cryptolens.io/api-reference/generated/IncrementIntValue.md)

### IncrementIntValue(string, ChangeIntValueToMachineCodeModel)

This method will increment the current int value by the one specified as an input parameter,
i.e. [`IntValue`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-int-value-model#int-value-50c693e9f7).

```csharp C# theme={null}
public static BasicResult IncrementIntValue(string token, ChangeIntValueToMachineCodeModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function IncrementIntValue(token As String, parameters As ChangeIntValueToMachineCodeModel) As BasicResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/IncrementIntValue.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`ChangeIntValueToMachineCodeModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-int-value-to-machine-code-model) | The parameters that the method needs |

**Returns:** [`BasicResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/basic-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[IncrementIntValue](https://help.cryptolens.io/api-reference/generated/IncrementIntValue.md)

### ListDataObjects(string, ListDataObjectsModel)

This method lists either all Data Object associated with a
license key, a product or your entire account, or all of them at once.

```csharp C# theme={null}
public static ListOfDataObjectsResult ListDataObjects(string token, ListDataObjectsModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function ListDataObjects(token As String, parameters As ListDataObjectsModel) As ListOfDataObjectsResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/ListDataObjects.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`ListDataObjectsModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/list-data-objects-model) | The parameters that the method needs |

**Returns:** [`ListOfDataObjectsResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/list-of-data-objects-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[ListDataObjects](https://help.cryptolens.io/api-reference/generated/ListDataObjects.md)

### ListDataObjects(string, ListDataObjectsToKeyModel)

This method lists all data objects associated with a license key only.

```csharp C# theme={null}
public static ListOfDataObjectsResult ListDataObjects(string token, ListDataObjectsToKeyModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function ListDataObjects(token As String, parameters As ListDataObjectsToKeyModel) As ListOfDataObjectsResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/ListDataObjects.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`ListDataObjectsToKeyModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/list-data-objects-to-key-model) | The parameters that the method needs |

**Returns:** [`ListOfDataObjectsResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/list-of-data-objects-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[ListDataObjects](https://help.cryptolens.io/api-reference/generated/ListDataObjects.md)

### ListDataObjects(string, ListDataObjectsToMachineCodeModel)

This method lists all data objects associated with a machine code only.

```csharp C# theme={null}
public static ListOfDataObjectsResult ListDataObjects(string token, ListDataObjectsToMachineCodeModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function ListDataObjects(token As String, parameters As ListDataObjectsToMachineCodeModel) As ListOfDataObjectsResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/ListDataObjects.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`ListDataObjectsToMachineCodeModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/list-data-objects-to-machine-code-model) | The parameters that the method needs |

**Returns:** [`ListOfDataObjectsResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/list-of-data-objects-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[ListDataObjects](https://help.cryptolens.io/api-reference/generated/ListDataObjects.md)

### RemoveDataObject(string, RemoveDataObjectModel)

This method will remove an existing data object.

```csharp C# theme={null}
public static BasicResult RemoveDataObject(string token, RemoveDataObjectModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function RemoveDataObject(token As String, parameters As RemoveDataObjectModel) As BasicResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/RemoveDataObject.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`RemoveDataObjectModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/remove-data-object-model) | The parameters that the method needs |

**Returns:** [`BasicResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/basic-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[RemoveDataObject](https://help.cryptolens.io/api-reference/generated/RemoveDataObject.md)

### RemoveDataObject(string, RemoveDataObjectToKeyModel)

This method will remove an existing data object.

```csharp C# theme={null}
public static BasicResult RemoveDataObject(string token, RemoveDataObjectToKeyModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function RemoveDataObject(token As String, parameters As RemoveDataObjectToKeyModel) As BasicResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/RemoveDataObject.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`RemoveDataObjectToKeyModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/remove-data-object-to-key-model) | The parameters that the method needs |

**Returns:** [`BasicResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/basic-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[RemoveDataObject](https://help.cryptolens.io/api-reference/generated/RemoveDataObject.md)

### RemoveDataObject(string, RemoveDataObjectToMachineCodeModel)

This method will remove an existing data object.

```csharp C# theme={null}
public static BasicResult RemoveDataObject(string token, RemoveDataObjectToMachineCodeModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function RemoveDataObject(token As String, parameters As RemoveDataObjectToMachineCodeModel) As BasicResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/RemoveDataObject.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`RemoveDataObjectToMachineCodeModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/remove-data-object-to-machine-code-model) | The parameters that the method needs |

**Returns:** [`BasicResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/basic-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[RemoveDataObject](https://help.cryptolens.io/api-reference/generated/RemoveDataObject.md)

### SetIntValue(string, ChangeIntValueModel)

This method will set the int value to a new one.

```csharp C# theme={null}
public static BasicResult SetIntValue(string token, ChangeIntValueModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function SetIntValue(token As String, parameters As ChangeIntValueModel) As BasicResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/SetIntValue.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`ChangeIntValueModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-int-value-model) | The parameters that the method needs |

**Returns:** [`BasicResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/basic-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[SetIntValue](https://help.cryptolens.io/api-reference/generated/SetIntValue.md)

Note also: Integer overflows are not allowed. If you attempt to assign an int value that is beyond the limits of an int32, zero will be assigned to the data object's IntValue.

### SetIntValue(string, ChangeIntValueToKeyModel)

This method will set the int value to a new one.

```csharp C# theme={null}
public static BasicResult SetIntValue(string token, ChangeIntValueToKeyModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function SetIntValue(token As String, parameters As ChangeIntValueToKeyModel) As BasicResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/SetIntValue.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`ChangeIntValueToKeyModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-int-value-to-key-model) | The parameters that the method needs |

**Returns:** [`BasicResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/basic-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[SetIntValue](https://help.cryptolens.io/api-reference/generated/SetIntValue.md)

Note also: Integer overflows are not allowed. If you attempt to assign an int value that is beyond the limits of an int32, zero will be assigned to the data object's IntValue.

### SetIntValue(string, ChangeIntValueToMachineCodeModel)

This method will set the int value to a new one.

```csharp C# theme={null}
public static BasicResult SetIntValue(string token, ChangeIntValueToMachineCodeModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function SetIntValue(token As String, parameters As ChangeIntValueToMachineCodeModel) As BasicResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/SetIntValue.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`ChangeIntValueToMachineCodeModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-int-value-to-machine-code-model) | The parameters that the method needs |

**Returns:** [`BasicResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/basic-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[SetIntValue](https://help.cryptolens.io/api-reference/generated/SetIntValue.md)

Note also: Integer overflows are not allowed. If you attempt to assign an int value that is beyond the limits of an int32, zero will be assigned to the data object's IntValue.

### SetStringValue(string, ChangeStringValueModel)

This method will set the string value to a new one.

```csharp C# theme={null}
public static BasicResult SetStringValue(string token, ChangeStringValueModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function SetStringValue(token As String, parameters As ChangeStringValueModel) As BasicResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/SetStringValue.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`ChangeStringValueModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-string-value-model) | The parameters that the method needs |

**Returns:** [`BasicResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/basic-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[SetStringValue](https://help.cryptolens.io/api-reference/generated/SetStringValue.md)

### SetStringValue(string, ChangeStringValueToKeyModel)

This method will set the string value to a new one.

```csharp C# theme={null}
public static BasicResult SetStringValue(string token, ChangeStringValueToKeyModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function SetStringValue(token As String, parameters As ChangeStringValueToKeyModel) As BasicResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/SetStringValue.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`ChangeStringValueToKeyModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-string-value-to-key-model) | The parameters that the method needs |

**Returns:** [`BasicResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/basic-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[SetStringValue](https://help.cryptolens.io/api-reference/generated/SetStringValue.md)

### SetStringValue(string, ChangeStringValueToMachineCodeModel)

This method will set the string value to a new one.

```csharp C# theme={null}
public static BasicResult SetStringValue(string token, ChangeStringValueToMachineCodeModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function SetStringValue(token As String, parameters As ChangeStringValueToMachineCodeModel) As BasicResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/SetStringValue.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`ChangeStringValueToMachineCodeModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-string-value-to-machine-code-model) | The parameters that the method needs |

**Returns:** [`BasicResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/basic-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[SetStringValue](https://help.cryptolens.io/api-reference/generated/SetStringValue.md)

### UploadValues(string, UploadValuesToKeyModel)

This method will extract content from a Cryptolens log (used in offline licensing) and update existing data objects (either by incrementing or decrementing them).
To call this method, you either need an "Increment Int Value" and/or "Decrement Int Value" permission, depending on if the log that you submit increases or
decreases an int value of a data object. Note: for the time being, the limit of the number of entries in the log is 1000.
i.e. [`IntValue`](https://help.cryptolens.io/libraries/dotnet-reference/models/change-int-value-model#int-value-50c693e9f7).

```csharp C# theme={null}
public static BasicResult UploadValues(string token, UploadValuesToKeyModel parameters)
```

```vb VB.NET theme={null}
Public Shared Function UploadValues(token As String, parameters As UploadValuesToKeyModel) As BasicResult
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/UploadValues.md)

**Parameters**

| Name | Type | Description |
| - | - | - |
| `token` | `string` | The access token. Read more at [Auth](https://help.cryptolens.io/api-reference/generated/Auth.md) |
| `parameters` | [`UploadValuesToKeyModel`](https://help.cryptolens.io/libraries/dotnet-reference/models/upload-values-to-key-model) | The parameters that the method needs |

**Returns:** [`BasicResult`](https://help.cryptolens.io/libraries/dotnet-reference/models/basic-result). The API response. Check `Result` and `Message` before using the returned data.

Note: for more details, please see
[UploadValues](https://help.cryptolens.io/api-reference/generated/UploadValues.md)

[.NET SDK Reference](https://help.cryptolens.io/libraries/dotnet-api.md) · [Reviewed Source Revision](https://github.com/Cryptolens/cryptolens-dotnet/tree/30aaf399ba53d9a111bee896c35bf557fa219394)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.