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

IObjectSpace.CanInstantiate(Type) Method

Indicates whether instances of a particular type can be created.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v20.2.dll


bool CanInstantiate(
    Type type
Function CanInstantiate(
    type As Type
) As Boolean


Name Type Description
type Type

An object type for which it must be determined whether its instances can be created.


Type Description

true, if instances of the specified type can be created; otherwise, false.


To determine whether a particular type can be instantiated, use the IEntityStore (Type Info Source) object that must be passed as a parameter in the Object Space's constructor. To be instantiated, the requested type must be contained in the IEntityStore.RegisteredEntities collection.

See Also