Sets default options for a class.
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, Inherited = false)] public class DefaultClassOptionsAttribute : Attribute
<AttributeUsage(AttributeTargets.Class Or AttributeTargets.Interface, Inherited:=False)> Public Class DefaultClassOptionsAttribute Inherits Attribute
The following default options are set when applying the DefaultClassOptions attribute to a business class:
- The corresponding item is added to the navigation control's Default navigation item. This allows end-users to display a View with objects of this class.
- The corresponding item is added to the New Action's Items list. This allows end-users to create objects of this class when objects of another type are currently displayed by the View.
- The corresponding item is added to the Data Type drop-down list on the Report Wizard. This allows end-users to create reports for objects of this class (see Create and View Reports in a WinForms Application).
- The corresponding item is added to the types list in the Dashboards Data Source Wizard. This allows end-users to create dashboards for objects of this class (see Create, View and Modify Dashboards in a WinForms Application and Create, View and Modify Dashboards in an ASP.NET Application).