Skip to main content
.NET Framework 4.5.2+

XafApplication.GetDetailViewId(Type) Method

Returns the ID of the Detail View which is used for objects of a specified type by default, and raises an exception if the appropriate View ID is not found.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v23.1.dll

NuGet Package: DevExpress.ExpressApp


public string GetDetailViewId(
    Type objectType


Name Type Description
objectType Type

A string value that represents a business object type.


Type Description

A string value that represents the ID of the View used to display objects whose type is specified by the objectType parameter.


This method calls the XafApplication.FindDetailViewId method and raises an exception if the appropriate View has not been found. Use this method instead of the XafApplication.FindDetailViewId method if you need an exception to be raised in an exclusive situation.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetDetailViewId(Type) method.


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.

See Also