Skip to main content
All docs
V25.1
  • .NET 8.0+
    • The page you are viewing does not exist in the .NET Framework 4.6.2+ platform documentation. This link will take you to the parent topic of the current section.

    XPObjectSpaceProviderOptions.ExcludePersistentTypes(Type[]) Method

    Excludes the specified persistent classes from the list of available classes in Object Space.

    Namespace: DevExpress.ExpressApp.ApplicationBuilder

    Assembly: DevExpress.ExpressApp.Xpo.v25.1.dll

    NuGet Package: DevExpress.ExpressApp.Xpo

    Declaration

    public void ExcludePersistentTypes(
        params Type[] types
    )

    Parameters

    Name Type Description
    types Type[]

    An array of persistent types.

    Remarks

    Use the ExcludePersistentTypes method to hide persistent classes from the ObjectSpace created with the ObjectSpaceProvider. All persistent classes registered in the application and its modules will be available in the ObjectSpace, except for types listed in the types parameter.

    Do not call UseCustomPersistentTypes(Type[]) and ExcludePersistentTypes(Type[]) methods at the same time.

    See Also