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

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

Input parameters to KeyLock method.

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

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

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

**Used By:** [`KeyLock(string, KeyLockModel)`](/libraries/dotnet-reference/methods/auth#key-lock-c77cd6c461), [`BlockKey(string, KeyLockModel)`](/libraries/dotnet-reference/methods/key#block-key-55989bb165), [`UnblockKey(string, KeyLockModel)`](/libraries/dotnet-reference/methods/key#unblock-key-50cf3aa32e)

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

## Inherited SDK Members

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

## Properties

<a id="key-b5e79d9337" />

### Key

The Key String, i.e. ABCDE-ABCDE-ABCDE-ABCDE.

<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="product-id-ce0f5d422f" />

### ProductId

The id of the product you want to access. You can find it
when you are logged in on [KeyLock](/api-reference/generated/KeyLock)
and select the product in the drop down list.

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

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

**Type:** `int`

## Constructors

<a id="ctor-5b2c7a1811" />

### KeyLockModel()

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

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

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