Back to Devexpress

SecurityBrowsableAttribute Class

expressappframework-devexpress-dot-expressapp-dot-security-d13587ce.md

latest2.4 KB
Original Source

SecurityBrowsableAttribute Class

Applied to business class properties together with the Browsable(false) attribute. Unhides a hidden property in the Member Permissions configuration UI. The target property remains hidden in other places.

Namespace : DevExpress.ExpressApp.Security

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public class SecurityBrowsableAttribute :
    Attribute
vb
<AttributeUsage(AttributeTargets.Property Or AttributeTargets.Field, AllowMultiple:=False, Inherited:=True)>
Public Class SecurityBrowsableAttribute
    Inherits Attribute

Remarks

The following attributes combination makes the MyProperty property hidden everywhere except for the Members dropdown list in the Member Permissions tab.

csharp
[Browsable(false), SecurityBrowsable]
public virtual string MyProperty { get; set; }
csharp
[Browsable(false), SecurityBrowsable]
    public string MyProperty {
        get => myProperty;
        set => SetPropertyValue(nameof(MyProperty), ref myProperty, value);
    }

Inheritance

Object Attribute SecurityBrowsableAttribute

See Also

SecurityBrowsableAttribute Members

DevExpress.ExpressApp.Security Namespace