# CommandArgs

Namespace: **Wisej.Web**

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

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

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

```csharp
public class CommandArgs
```

{% endtab %}

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

```visual-basic
Public Class CommandArgs
```

{% endtab %}
{% endtabs %}

## Constructors

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

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

| Name                | Type                                                                                                | Description                                                                                                                   |
| ------------------- | --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| **dataItem**        | [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object)                                 | Current data item in the data source, or null.                                                                                |
| **commandSource**   | [ICommandSource](https://docs.wisej.com/api/v3.0/wisej.web/interfaces/wisej.web.icommandsource)     | The [ICommandSource](https://docs.wisej.com/api/v3.0/wisej.web/interfaces/wisej.web.icommandsource) that invoked the command. |
| **bindingContext**  | [BindingContext](https://docs.wisej.com/api/v3.0/wisej.web/data-binding/wisej.web.bindingcontext)   | Current [BindingContext](#bindingcontext) or null.                                                                            |
| **currencyManager** | [CurrencyManager](https://docs.wisej.com/api/v3.0/wisej.web/data-binding/wisej.web.currencymanager) | The [CurrencyManager](#currencymanager) for the current data source, or null.                                                 |

All arguments are optional.

## Properties

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

[BindingContext](https://docs.wisej.com/api/v3.0/wisej.web/data-binding/wisej.web.bindingcontext): Returns or sets the current [BindingContext](https://docs.wisej.com/api/v3.0/wisej.web/data-binding/wisej.web.bindingcontext).

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

[ICommandSource](https://docs.wisej.com/api/v3.0/wisej.web/interfaces/wisej.web.icommandsource): Returns or sets the [ICommandSource](https://docs.wisej.com/api/v3.0/wisej.web/interfaces/wisej.web.icommandsource) that invoked the command.

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

[CurrencyManager](https://docs.wisej.com/api/v3.0/wisej.web/data-binding/wisej.web.currencymanager): Returns or sets the current [CurrencyManager](https://docs.wisej.com/api/v3.0/wisej.web/data-binding/wisej.web.currencymanager).

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

[Object](https://docs.microsoft.com/en-us/dotnet/api/system.object): Returns or sets the current data item.

## Inherited By

| Name                                                                                            | Description                                                                                                          |
| ----------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| [CommandArgs\<T>](https://docs.wisej.com/api/v3.0/wisej.web/data-binding/wisej.web.commandargs) | Represents typed data passed to [ICommand](https://docs.wisej.com/api/v3.0/wisej.web/interfaces/wisej.web.icommand). |
