Skip to main content
.NET Framework 4.6.2+

View Members

The base class for Views.

Fields

Name Description
SecurityReadOnlyItemName Returns a key used to create an item in the View.AllowEdit collection of the current View. This key specifies a reason for making the View editable/read-only when the Security System allows/denies access to edit to the object(s) represented by the View.

Properties

Name Description
AllowDelete Provides access to a collection of reason/value pairs used to allow or prohibit deletion of objects via a View.
AllowEdit Provides access to a collection of reason/value pairs used to make a View read-only/editable.
AllowNew Provides access to a collection of reason/value pairs used to allow or prohibit creation of new objects via a View.
Caption Specifies a View‘s caption.
ContentUniqueCode For internal use.
Control Returns the current View‘s control.
CurrentObject Specifies a View‘s current object.
ErrorMessages Provides access to the current View‘s message collection.
Id Returns a View‘s ID.
Initialization
IsControlCreated Indicates whether a View‘s View.Control has been created.
IsDisposed Gets a value indicating whether a View has been disposed of.
IsRoot Specifies whether a View is root.
Model Provides access to information on a View, which is stored in the Application Model.
ObjectSpace Provides access to the object space within which a View was created.
ObjectTypeInfo Gets the ObjectTypeInfo property value if the current View is ObjectView. Otherwise, returns null.
ScrollPosition Specifies the scroll point of Windows in ASP.NET Web Forms applications.
SelectedObjects Specifies a View‘s selected objects.
SelectionType Returns the selection type supported by a View.
SkipQueryCanClose For internal use.
Tag Specifies the custom data associated with the View.

Methods

Name Description
BreakLinksToControls() Removes references to a View‘s controls and their event handlers.
CanChangeCurrentObject() Determines whether a View‘s current object can be changed.
CanClose() Determines whether a View can be closed.
Close() Closes a View.
Close(Boolean) Closes a View if it is allowed to be closed.
CreateControls() Creates controls that visualize a View in a UI.
CreateShortcut() Returns key information on the current View.
Dispose() Releases all resources used by this View object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
ExecuteAfterInitialized(Action<Task>)
GetCurrentObjectCaption() Returns the current object’s caption, formatted according to the applied ObjectCaptionFormatAttribute.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
IsSameObjectSpace(View) Checks whether a specific View interacts with the database via the current View’s Object Space.
LoadModel() For internal use.
LoadModel(Boolean) Applies the Application Model changes to the current View.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
RaiseActivated() Raises the View.Activated event.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Refresh() Refreshes displayed values of the View‘s controls with new values from the data source collection (not from the database itself).
Refresh(Boolean) Refreshes displayed values of the View‘s controls with new values from the data source collection (and optionally, from the database itself).
RefreshDataSource() Refreshes the data source of the current View.
SaveModel() Writes information on a View to the Application Model.
SetModel(IModelView) For internal use.
ToString() Returns a View‘s textual representation.

Events

Name Description
Activated Occurs when the View.RaiseActivated method is executed.
AllowDeleteChanged Occurs when the current View‘s View.AllowDelete state has changed.
AllowEditChanged Occurs when the current View‘s View.AllowEdit state has changed.
AllowNewChanged Occurs when the current View‘s View.AllowNew state has changed.
CaptionChanged Occurs after changing a View‘s caption.
Closed Occurs after the current View is closed.
Closing Occurs when closing a View.
ControlsCreated Occurs after controls for a View are created.
ControlsCreating Occurs before creating controls for a View.
CurrentObjectChanged Occurs after changing a View’s focused object (not an object’s property value).
CustomizeViewShortcut Occurs when the View.CreateShortcut method creates a View Shortcut for the current View.
CustomModelSaving Occurs when saving information on a View’s editor(s) to the Application Model.
DataSourceAsyncLoaded For internal use.
DataSourceAsyncLoading For internal use.
DataSourceAsyncLoadingCanceled For internal use.
Disposing Occurs when the current View is disposed of.
ModelChanged Occurs after setting the View.Model property for a View.
ModelChanging Occurs before setting the View.Model property for a View.
ModelLoaded This event is intended for internal use.
ModelSaved Occurs after the information on a View has been saved to the Application Model.
ModelSaving Occurs before saving information on a View’s controls to the Application Model.
QueryCanChangeCurrentObject Occurs when the View is asked whether its current object can be changed.
QueryCanClose Occurs when checking whether a View can be closed.
SelectionChanged Occurs after changing a View’s selected objects.
SelectionTypeChanged Occurs when the current View’s selection type is changed.
See Also