Skip to main content
All docs
V24.2
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SecurityStrategy.IsSecuredType(Type, ITypesInfo) Method

Checks if the specified type can be secured.

Namespace: DevExpress.ExpressApp.Security

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

#Declaration

public static bool IsSecuredType(
    Type type,
    ITypesInfo typesInfo = null
)

#Parameters

Name Type Description
type Type

A System.Type object.

#Optional Parameters

Name Type Default Description
typesInfo ITypesInfo null

An ITypesInfo object that provides access to XAF-related information on business classes.

#Returns

Type Description
Boolean

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

#Remarks

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