expressappframework-devexpress-dot-expressapp-dot-iobjectspace-dot-isknowntype-x28-system-dot-type-x29.md
Returns the boolean value indicating whether or not the specified type is known by the IObjectSpace.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
bool IsKnownType(
Type type
)
Function IsKnownType(
type As Type
) As Boolean
| Name | Type | Description |
|---|---|---|
| type | Type |
A Type object.
|
| Type | Description |
|---|---|
| Boolean |
true , if the type is known; otherwise, false.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the IsKnownType(Type) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
if(!_Count.HasValue && ObjectSpace != null) {
var pos = ((NonPersistentObjectSpace)ObjectSpace).AdditionalObjectSpaces.FirstOrDefault(os => os.IsKnownType(typeof(Order)));
if(pos != null) {
protected IObjectSpace FindPersistentObjectSpace(Type type) {
return ((NonPersistentObjectSpace)objectSpace).AdditionalObjectSpaces.FirstOrDefault(os => os.IsKnownType(type));
}
protected IObjectSpace FindPersistentObjectSpace(Type type) {
return ((NonPersistentObjectSpace)ObjectSpace).AdditionalObjectSpaces.FirstOrDefault(os => os.IsKnownType(type));
}
protected IObjectSpace FindPersistentObjectSpace(Type type) {
return ((NonPersistentObjectSpace)ObjectSpace).AdditionalObjectSpaces.FirstOrDefault(os => os.IsKnownType(type));
}
Protected Function FindPersistentObjectSpace(ByVal type As Type) As IObjectSpace
Return DirectCast(objectSpace_Conflict, NonPersistentObjectSpace).AdditionalObjectSpaces.FirstOrDefault(Function(os) os.IsKnownType(type))
End Function
Protected Function FindPersistentObjectSpace(ByVal type As Type) As IObjectSpace
Return DirectCast(ObjectSpace, NonPersistentObjectSpace).AdditionalObjectSpaces.FirstOrDefault(Function(os) os.IsKnownType(type))
End Function
Protected Function FindPersistentObjectSpace(ByVal type As Type) As IObjectSpace
Return DirectCast(ObjectSpace, NonPersistentObjectSpace).AdditionalObjectSpaces.FirstOrDefault(Function(os) os.IsKnownType(type))
End Function
See Also