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

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

Parameters used by [`RegisterEvent(string, RegisterEventModel)`](/libraries/dotnet-reference/methods/ai#register-event-2509245ada).

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

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

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

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

## Inherited SDK Members

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

## Properties

<a id="currency-5f4bbb1172" />

### Currency

The currency, eg USD. Useful if this event has a certain value.

<CodeGroup>
  ```csharp C# theme={null}
  [DefaultValue("")]
  public string Currency { get; set; }
  ```

  ```vb VB.NET theme={null}
  <DefaultValue("")>
  Public Property Currency As String
  ```
</CodeGroup>

**Type:** `string`

<a id="event-name-149a7feddb" />

### EventName

The name of the event, eg. 'click' or 'start'. Can be any string of max 100 chars in length.

<CodeGroup>
  ```csharp C# theme={null}
  [DefaultValue("")]
  public string EventName { get; set; }
  ```

  ```vb VB.NET theme={null}
  <DefaultValue("")>
  Public Property EventName As String
  ```
</CodeGroup>

**Type:** `string`

<a id="feature-name-8c30e0b5a6" />

### FeatureName

The name of the feature, eg. 'VideoRecorder' or 'F1'. Can be any string of max 100 chars in length.

<CodeGroup>
  ```csharp C# theme={null}
  [DefaultValue("")]
  public string FeatureName { get; set; }
  ```

  ```vb VB.NET theme={null}
  <DefaultValue("")>
  Public Property FeatureName As String
  ```
</CodeGroup>

**Type:** `string`

<a id="key-2a2dfcc405" />

### Key

The serial key string

<CodeGroup>
  ```csharp C# theme={null}
  [DefaultValue("")]
  public string Key { get; set; }
  ```

  ```vb VB.NET theme={null}
  <DefaultValue("")>
  Public Property Key As String
  ```
</CodeGroup>

**Type:** `string`

<a id="machine-code-5d902f37aa" />

### MachineCode

The machine code or any other identifier of the device/user (especially if no product and key is given).

<CodeGroup>
  ```csharp C# theme={null}
  [DefaultValue("")]
  public string MachineCode { get; set; }
  ```

  ```vb VB.NET theme={null}
  <DefaultValue("")>
  Public Property MachineCode As String
  ```
</CodeGroup>

**Type:** `string`

<a id="metadata-b6b39001b6" />

### Metadata

Additional metadata as JSON string related to this event. Be careful and do not send personal identifiable information unless it is really needed. Please read more ">here.

<CodeGroup>
  ```csharp C# theme={null}
  [DefaultValue("")]
  public string Metadata { get; set; }
  ```

  ```vb VB.NET theme={null}
  <DefaultValue("")>
  Public Property Metadata As String
  ```
</CodeGroup>

**Type:** `string`

<a id="product-id-e98dbcab60" />

### ProductId

The product id (=\*\*\[ProductId] \*\*)

<CodeGroup>
  ```csharp C# theme={null}
  [DefaultValue(-1)]
  public int ProductId { get; set; }
  ```

  ```vb VB.NET theme={null}
  <DefaultValue(-1)>
  Public Property ProductId As Integer
  ```
</CodeGroup>

**Type:** `int`

<a id="value-55ada797ec" />

### Value

The value of the event, eg. if this event lead to a transaction, you can enter its value here (as an int, 25.3 should be entered as 2530). In this case, you can, for instance, set EventName to 'purchase', or anything similar.

<CodeGroup>
  ```csharp C# theme={null}
  [DefaultValue(0)]
  public int Value { get; set; }
  ```

  ```vb VB.NET theme={null}
  <DefaultValue(0)>
  Public Property Value As Integer
  ```
</CodeGroup>

**Type:** `int`

## Constructors

<a id="ctor-cf4636ac75" />

### RegisterEventModel()

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

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

  ```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.