Back to Devexpress

SecuritySystem.CurrentUserId Property

expressappframework-devexpress-dot-expressapp-dot-securitysystem.md

latest2.1 KB
Original Source

SecuritySystem.CurrentUserId Property

Gets the unique identifier of the current user.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public static object CurrentUserId { get; }
vb
Public Shared ReadOnly Property CurrentUserId As Object

Property Value

TypeDescription
Object

An object which is the unique identifier of the current user.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CurrentUserId 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.

xaf-save-and-share-custom-view-settings/CS/EFCore/ViewSettingsEF/ViewSettingsEF.Module/Controllers/ViewVariantsController.cs#L104

csharp
SettingsStore store = (SettingsStore)e.PopupWindowViewCurrentObject;
if(SecuritySystem.CurrentUserId != null) {
    store.OwnerId = SecuritySystem.CurrentUserId.ToString();

See Also

SecuritySystem Class

SecuritySystem Members

DevExpress.ExpressApp Namespace