SecurityStrategy.GetSecuredTypes(ITypesInfo) Method
Returns a list of business classes that can be secured.
Namespace: DevExpress.ExpressApp.Security
Assembly: DevExpress.ExpressApp.Security.v24.2.dll
NuGet Package: DevExpress.ExpressApp.Security
#Declaration
public static IEnumerable<Type> GetSecuredTypes(
ITypesInfo typesInfo = null
)
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
types |
ITypes |
null | An ITypes |
#Returns
Type | Description |
---|---|
IEnumerable<Type> | An IEnumerable |
#Remarks
By default, returns 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 determine whether a particular type is secured, use the SecurityStrategy.IsSecuredType method.