# CommandArgs\<T>

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

* [CommandArgs](https://docs.wisej.com/api/wisej.web/data-binding/wisej.web.commandargs)
  * [CommandArgs\<T>](https://docs.wisej.com/api/wisej.web/data-binding/wisej.web.commandargs-less-than-t-greater-than)

Represents typed data passed to [ICommand](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.icommand).

{% tabs %}
{% tab title="C#" %}

```csharp
public class CommandArgs<T> : CommandArgs
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class CommandArgs(Of T)
    Inherits CommandArgs
```

{% endtab %}
{% endtabs %}

## Parameters

| Name  | Description                                                                                              |
| ----- | -------------------------------------------------------------------------------------------------------- |
| **T** | Type of the [CommandArgs](https://docs.wisej.com/api/wisej.web/wisej.web.commandargs#dataitem) property. |

## Constructors

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CommandArgs()

Initializes a new [CommandArgs](https://docs.wisej.com/api/wisej.web/data-binding/wisej.web.commandargs).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CommandArgs(args)

Initializes a new [CommandArgs](https://docs.wisej.com/api/wisej.web/data-binding/wisej.web.commandargs).

| Name     | Type                                                                                   | Description                                                                                                                               |
| -------- | -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| **args** | [CommandArgs](https://docs.wisej.com/api/wisej.web/data-binding/wisej.web.commandargs) | Original data used to initialize the typed [CommandArgs](https://docs.wisej.com/api/wisej.web/data-binding/wisej.web.commandargs) object. |

## Properties

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataItem

[T](https://docs.wisej.com/api/wisej.web/data-binding/wisej.web.commandargs-less-than-t-greater-than): Returns or sets the current data item.
