.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

SecurityStrategy.IsSecuredType(Type) Method

Checks if the specified type can be secured.

Namespace: DevExpress.ExpressApp.Security

Assembly: DevExpress.ExpressApp.Security.v19.2.dll


public static bool IsSecuredType(
    Type type
Public Shared Function IsSecuredType(
    type As Type
) As Boolean


Name Type Description
type Type

A System.Type object.


Type Description

true, if the specified type can be secured; otherwise - false;


By default, secured types are all persistent types (entries from the XafTypesInfo.Instance.PersistentTypes collection which have the ITypeInfo.IsPersistent property set to true) except for the XPObjectType and ModuleInfo types. You can add extra types (e.g., non-persistent types via the SecurityStrategy.AdditionalSecuredTypes list). To get all secured types, use the SecurityStrategy.GetSecuredTypes method.

See Also