Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public string GetDetailViewId(
    Type objectType
)

#Parameters

Name Type Description
objectType Type

A string value that represents a business object type.

#Returns

Type Description
String

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

#Remarks

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.

See Also