expressappframework-devexpress-dot-persistent-dot-base-1ce5218d.md
Applied to business classes that implement a Security System user. Specifies the name of a property that stores the current user photo or avatar icon. Has effect in the ASP.NET Core Blazor UI only.
Namespace : DevExpress.Persistent.Base
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)]
public class CurrentUserDisplayImageAttribute :
Attribute
<AttributeUsage(AttributeTargets.Class Or AttributeTargets.Interface)>
Public Class CurrentUserDisplayImageAttribute
Inherits Attribute
You can pass the name of a property that stores a user image to the CurrentUserDisplayImage attribute to display this image in the application toolbar.
Follow the steps below to extend a user class with a property that stores a user image:
MediaDataObject (XPO/EF Core), Image, or byte[] type.CurrentUserDisplayImageAttribute to the user class and pass the new property name as its parameter.The result is demonstrated in the image below:
Object Attribute CurrentUserDisplayImageAttribute
See Also