Back to Devexpress

PermissionPolicyRoleBase.CanEditModel Property

expressappframework-devexpress-dot-persistent-dot-baseimpl-dot-permissionpolicy-dot-permissionpolicyrolebase.md

latest2.4 KB
Original Source

PermissionPolicyRoleBase.CanEditModel Property

Specifies whether users associated with the current role can use the Model Editor. A DevExpress.Xpo.Session object, which is a persistent objects cache where the user will be instantiated.

Namespace : DevExpress.Persistent.BaseImpl.PermissionPolicy

Assembly : DevExpress.Persistent.BaseImpl.Xpo.v25.2.dll

NuGet Package : DevExpress.Persistent.BaseImpl.Xpo

Declaration

csharp
[Appearance("XPOCanEditModelIsAdministrative", Enabled = false, Criteria = "IsAdministrative", Context = "DetailView")]
public bool CanEditModel { get; set; }
vb
<Appearance("XPOCanEditModelIsAdministrative", Enabled:=False, Criteria:="IsAdministrative", Context:="DetailView")>
Public Property CanEditModel As Boolean

Property Value

TypeDescription
Boolean

true , if users associated with the current role can use the Model Editor; otherwise - false.

|

Remarks

The EditModel action is available in the Tools menu item of the Windows Forms application’s root window when this property is set to true in one of the current user’s roles.

Implements

CanEditModel

See Also

PermissionPolicyRoleBase Class

PermissionPolicyRoleBase Members

DevExpress.Persistent.BaseImpl.PermissionPolicy Namespace