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

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

Parameters used by [`GetKey(string, KeyInfoModel)`](/libraries/dotnet-reference/methods/key#get-key-3d8e65fdd6).

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

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

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

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

## Inherited SDK Members

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

## Properties

<a id="fields-to-return-51a0d3e447" />

### FieldsToReturn

An integer that allows you to restrict the information returned in the license key data object.

<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="key-c15cddff8d" />

### Key

The Key Id, eg. 12345.

<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="metadata-1956186122" />

### Metadata

Whether to return metadata about the license. See [GetKey metadata](/api-reference/generated/GetKey#metadata-fieldstoreturn0).

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

### ProductId

The ID of the product that this key belongs to.

<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-6d55adbc65" />

### Sign

Whether to request a signature. A new KeyInfoModel starts with false; 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-c5cd95b3cb" />

### 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-91154ec8a1" />

### KeyInfoModel()

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

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

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