expressappframework-devexpress-dot-expressapp-dot-view-a25b6106.md
Returns a View‘s ID.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public string Id { get; protected set; }
Public Property Id As String
| Type | Description |
|---|---|
| String |
A string value representing the current View’s ID.
|
By default, this property is set to the value of the ID property from the Application Model node specified by the View.Model property.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Id 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.
VariantsInfo variantsInfo = GetVariantsInfo();
return variantsInfo != null ? variantsInfo.RootViewId : View.Id;
}
lastSelectedItem = null;
CriteriaOperator criteria = CriteriaOperator.Parse("([ViewId] = ?) And ([IsShared] Or [OwnerId] is null Or [OwnerId] = ?)", View.Id, SecuritySystem.CurrentUserId.ToString());
IObjectSpace objectSpace = Application.CreateObjectSpace(typeof(SettingsStore));
base.OnActivated();
if (View.Id == DashboardViewId) {
SourceItem = (DashboardViewItem)View.FindItem(FilterSourceID);
xaf-how-to-create-information-panels/CS/InfoPanels.Module.Win/DetailViewForm.cs#L17
if (View != null) {
return TemplatesHelper.GetFormStateNode(View.Id);
}
if (c is IMasterDetailViewInfo) {
((IMasterDetailViewInfo)c).AssignMasterDetailViewId(View.Id);
}
xaf-how-to-create-information-panels/VB/InfoPanels.Module.Win/DetailViewForm.vb#L28
If View IsNot Nothing Then
Return TemplatesHelper.GetFormStateNode(View.Id)
Else
If TypeOf c Is IMasterDetailViewInfo Then
CType(c, IMasterDetailViewInfo).AssignMasterDetailViewId(View.Id)
End If
See Also