Back to Devexpress

CurrentUserDisplayImageAttribute Class

expressappframework-devexpress-dot-persistent-dot-base-1ce5218d.md

latest2.3 KB
Original Source

CurrentUserDisplayImageAttribute Class

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

Declaration

csharp
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)]
public class CurrentUserDisplayImageAttribute :
    Attribute
vb
<AttributeUsage(AttributeTargets.Class Or AttributeTargets.Interface)>
Public Class CurrentUserDisplayImageAttribute
    Inherits Attribute

Remarks

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:

  1. In a user business class, declare a property of the MediaDataObject (XPO/EF Core), Image, or byte[] type.
  2. Apply CurrentUserDisplayImageAttribute to the user class and pass the new property name as its parameter.

The result is demonstrated in the image below:

Inheritance

Object Attribute CurrentUserDisplayImageAttribute

See Also

CurrentUserDisplayImageAttribute Members

DevExpress.Persistent.Base Namespace