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

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

Parameters used by [`GetFloatingLicenseInformation(ActivateModel, KeyInfoResult)`](/libraries/dotnet-reference/methods/helpers#get-floating-license-information-9e2ad95dbe), [`Activate(string, ActivateModel)`](/libraries/dotnet-reference/methods/key#activate-0eb84d49fd).

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

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

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

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

## Inherited SDK Members

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

## Properties

<a id="fields-to-return-ec6ce357a8" />

### FieldsToReturn

A bit mask selecting fields to return in the license. See [field masking](/api-reference/generated/Activate#remarks).

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

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

**Type:** `int`

<a id="floating-time-interval-d289bcb738" />

### FloatingTimeInterval

When set to something greater than zero, floating licensing will be enabled.
The time interval is then used to check that no more than the allowed number
of machine codes (specified in maximumNumberOfMachines) have been activated
in that time period (in seconds).

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

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

**Type:** `int`

<a id="friendly-name-dfe92c5f0f" />

### FriendlyName

A display name for the activation. Initial registration stores it; repeated node-locked activation leaves it unchanged, while floating activation refreshes it. It does not change machine identity or seat count.

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

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

**Type:** `string`

<a id="key-3b85fede51" />

### Key

The Key string, eg. AAAA-BBBB-CCCC-DDDD.

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

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

**Type:** `string`

<a id="machine-code-86ee2f1f02" />

### MachineCode

The machine code (a string that identifies a device) for activation.

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

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

**Type:** `string`

<a id="max-overdraft-ac4eb42989" />

### MaxOverdraft

When set to something greater than zero (and assuming FloatingTimeInterval is set too)
floating licensing will permit a license overdraft (eg. activation will succeed even if
maximumNumberOfMachines is reached). MaxOverdraft value specifies how much we can exceed
the maximumNumberOfMachines value.

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

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

**Type:** `int`

<a id="metadata-8f030597da" />

### Metadata

Includes additional information about the license key, such as number of activated devices, etc.

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

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

**Type:** `bool`

<a id="osinfo-f8682e1092" />

### OSInfo

Additional OS information, which will be registered as an event. If this variable is not set or set to null,
this variable will contain a JSON serialized version of [`MachineInfo`](/libraries/dotnet-reference/models/machine-info), which is computed using
[`GetOSStats()`](/libraries/dotnet-reference/methods/helpers#get-osstats-c570c8d419). If you do not want OS data to be registered, set this variable to
empty string. You can also send in other data by setting this variable to something else.
Be careful with personal identifiable information and do not send in more data than necessary. Please read more
at [https://help.cryptolens.io/legal/DataPolicy#how-to-be-compliant-as-a-software-vendor](https://help.cryptolens.io/legal/DataPolicy#how-to-be-compliant-as-a-software-vendor).

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

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

**Type:** `string`

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

### ProductId

The product id, which can be found on the product page.

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

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

**Type:** `int`

<a id="sign-f0f8e2f932" />

### Sign

Whether to request a signature. A new ActivateModel starts with false; set it to true when you need a signed response. The RawResponse overload sets it to true for you.

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

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

**Type:** `bool`

<a id="sign-method-51cc801a20" />

### SignMethod

Specifies the format of the result and the way it should be signed.

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

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

**Type:** [`SignMethod`](/libraries/dotnet-reference/models/sign-method)

## Constructors

<a id="ctor-8cb4931305" />

### ActivateModel()

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

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

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