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

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

```vb VB.NET theme={null}
Public Class KeyInfoModel Inherits RequestModel
```

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

## Inherited SDK Members

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

## Properties

### FieldsToReturn

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

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

```vb VB.NET theme={null}
Public Property FieldsToReturn As Integer
```

**Type:** `int`

### Key

The Key Id, eg. 12345.

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

```vb VB.NET theme={null}
Public Property Key As String
```

**Type:** `string`

### Metadata

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

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

```vb VB.NET theme={null}
Public Property Metadata As Boolean
```

**Type:** `bool`

### ProductId

The ID of the product that this key belongs to.

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

```vb VB.NET theme={null}
Public Property ProductId As Integer
```

**Type:** `int`

### Sign

Whether to request a signature. A new KeyInfoModel starts with false; the RawResponse overload sets it to true for you.

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

```vb VB.NET theme={null}
Public Property Sign As Boolean
```

**Type:** `bool`

### SignMethod

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

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

```vb VB.NET theme={null}
Public Property SignMethod As SignMethod
```

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

## Constructors

### KeyInfoModel()

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

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

```vb VB.NET theme={null}
Public Sub New()
```

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