expressappframework-devexpress-dot-expressapp-dot-actions-dot-actionbase.md
Specifies an Action‘s identifier.
Namespace : DevExpress.ExpressApp.Actions
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public string Id { get; set; }
Public Property Id As String
| Type | Description |
|---|---|
| String |
A string property that represents the current Action’s identifier.
|
By default, this property is set to a GUID. You can set another value in the Controller’s contructor or Designer. This value will be saved to the Application Model‘s IModelAction node.
Note
An Action’s identifier must be unique. For instance, you can set values like namespaces: “MyApp.FinancialOperations.AddTurnoverAction”.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Id property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
BarLinkActionControlContainer container = (BarLinkActionControlContainer)e.Container;
IActionControl actionControl = CreateActionControl(e.Action.Id, container.BarContainerItem);
container.AddActionControl(actionControl);
roleGeneratorAction.ConfirmationMessage = null;
roleGeneratorAction.Id = "RoleGeneratorAction";
roleGeneratorAction.ImageName = "Action_Export";
See Also