Back to Devexpress

ObjectView.ObjectTypeInfo Property

expressappframework-devexpress-dot-expressapp-dot-objectview.md

latest3.3 KB
Original Source

ObjectView.ObjectTypeInfo Property

Specifies metadata information on the current View’s business class.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public override ITypeInfo ObjectTypeInfo { get; set; }
vb
Public Overrides Property ObjectTypeInfo As ITypeInfo

Property Value

TypeDescription
ITypeInfo

A ITypeInfo object providing metadata information on the current View’s business class.

|

Remarks

You can use the returned object’s ITypeInfo.Type property to obtain the Type of the current View’s business class.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ObjectTypeInfo property.

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.

xaf-print-a-report-without-displaying-a-preview/CS/EFCore/InstantReportEF/InstantReportEF.Win/Controllers/WinInstantPrintReportController.cs#L24

csharp
// Filter and sort report data.
CriteriaOperator objectsCriteria = ((BaseObjectSpace)ObjectSpace).GetObjectsCriteria(((ObjectView)View).ObjectTypeInfo, selectedObjects);
SortProperty[] sortProperties = { new SortProperty("Age", SortingDirection.Descending) };

XAF_logon-form-manage-users-register-a-new-user-restore-a-password/CS/EFCore/Security.Extensions/ManageUsersOnLogonController.cs#L39

csharp
//Dennis: Manage the state of own Actions as well as dialog Actions of the LogonController class within the same logon Frame.
bool isLogonParametersActionView = (View != null) && (View.ObjectTypeInfo != null) && View.ObjectTypeInfo.Implements<LogonActionParametersBase>();
LogonController lc = Frame.GetController<LogonController>();

See Also

ObjectView Class

ObjectView Members

DevExpress.ExpressApp Namespace