> ## 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: AddDataObjectModel

> Signatures, models and behavior for SKM.V3.Models.AddDataObjectModel in the .NET SDK 4.0.54.

Used to add a new Data Object.

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

<CodeGroup>
  ```csharp C# theme={null}
  public class AddDataObjectModel : RequestModel
  ```

  ```vb VB.NET theme={null}
  Public Class AddDataObjectModel Inherits RequestModel
  ```
</CodeGroup>

**Used By:** [`AddDataObject(string, AddDataObjectModel)`](/libraries/dotnet-reference/methods/data#add-data-object-2626e13729)

[Web API Reference](/api-reference/generated/AddDataObject)

## Inherited SDK Members

* [`LicenseServerUrl`](/libraries/dotnet-reference/models/request-model#license-server-url-67581aa5cb)

## Properties

<a id="check-for-duplicates-c5b52b6cbe" />

### CheckForDuplicates

Make sure data objects with the same name are not added.

<CodeGroup>
  ```csharp C# theme={null}
  public bool CheckForDuplicates { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property CheckForDuplicates As Boolean
  ```
</CodeGroup>

**Type:** `bool`

<a id="int-value-c8c3b39b83" />

### IntValue

An int value (int32) to store.

<CodeGroup>
  ```csharp C# theme={null}
  public int IntValue { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property IntValue As Integer
  ```
</CodeGroup>

**Type:** `int`

<a id="name-3703a24515" />

### Name

The name of the data object. The API accepts up to 100 characters.

<CodeGroup>
  ```csharp C# theme={null}
  public string Name { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property Name As String
  ```
</CodeGroup>

**Type:** `string`

<a id="referencer-id-1ba960358a" />

### ReferencerId

The id of the Referencer. It can either be an id to a product
that you have or to a license key. When ReferencerType is set
to User, there is no need to set this value.

<CodeGroup>
  ```csharp C# theme={null}
  public int ReferencerId { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property ReferencerId As Integer
  ```
</CodeGroup>

**Type:** `int`

<a id="referencer-type-3b9bfcb5d3" />

### ReferencerType

Indicates if the data object should be added to a
license key, a product or the entire user account.
[`DataObject`](/libraries/dotnet-reference/data-object)

<CodeGroup>
  ```csharp C# theme={null}
  public DataObjectType ReferencerType { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property ReferencerType As DataObjectType
  ```
</CodeGroup>

**Type:** [`DataObjectType`](/libraries/dotnet-reference/data-object-type)

<a id="string-value-a1d36897d9" />

### StringValue

A string value (text) to store. The API accepts up to 10,000 characters.

<CodeGroup>
  ```csharp C# theme={null}
  public string StringValue { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property StringValue As String
  ```
</CodeGroup>

**Type:** `string`

## Constructors

<a id="ctor-ed0e62d8e8" />

### AddDataObjectModel()

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

<CodeGroup>
  ```csharp C# theme={null}
  public AddDataObjectModel()
  ```

  ```vb VB.NET theme={null}
  Public Sub New()
  ```
</CodeGroup>

[.NET SDK Reference](/libraries/dotnet-api) · [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.