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

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

Parameters used by [`GetKeys(string, GetKeysModel)`](/libraries/dotnet-reference/methods/product-methods#get-keys-6711433adc).

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

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

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

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

## Inherited SDK Members

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

## Properties

<a id="order-by-92fa77aa51" />

### OrderBy

Specifies the way to order the result. The order by field has the
following structure: fieldName \[ascending|descending]. For example,
If you want to order by the feature field 1 (F1), you should use F1.
If you want it in descending order, please add the descending keywords
right after the field, eg. F1 descending. The ascending keyword is
the default, hence optional.

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

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

**Type:** `string`

<a id="page-d8bfd2ca20" />

### Page

If there are more than 100 keys, only 99 will be returned
on the first page. in order to obtain the remaining licenses,
increment this parameter by 1.

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

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

**Type:** `int`

<a id="product-id-8002921b34" />

### ProductId

The product id

<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="search-query-3f514d697a" />

### SearchQuery

Sorts the result so that only the license keys that satisfy the
criterion will be displayed. Please see:
[https://help.cryptolens.io/web-interface/linq-search-product](https://help.cryptolens.io/web-interface/linq-search-product)

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

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

**Type:** `string`

## Constructors

<a id="ctor-71b5cbfc38" />

### GetKeysModel()

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

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

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