ModelDataSource Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The data source control used by data-bound controls to perform CRUD (create, read, update, delete) operations when model binding is in use.
public ref class ModelDataSource : System::Web::UI::IDataSource, System::Web::UI::IStateManager
public class ModelDataSource : System.Web.UI.IDataSource, System.Web.UI.IStateManager
type ModelDataSource = class
interface IDataSource
interface IStateManager
Public Class ModelDataSource
Implements IDataSource, IStateManager
- Inheritance
-
ModelDataSource
- Implements
Model |
Initializes a new instance of the ModelDataSource class. |
Data |
Gets the data-bound control that is using this control as a data source when model binding is in use. |
View |
Gets the default (and only) view object for this data source control. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Is |
Returns a value that indicates whether the control is tracking view state. |
Load |
Loads the previously saved view state. |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Save |
Saves the state of the control. |
To |
Returns a string that represents the current object. (Inherited from Object) |
Track |
Tracks view-state changes to the control so that they can be stored in the StateBag object. |
Update |
Updates the required properties for two-way data binding. |
Update |
Updates the required properties for one-way data binding. |
Calling |
Occurs when model binding is in use and data methods are being called. |
IData |
Occurs when the underlying data source has changed. The change may be due to a change in the control's properties, or a change in the data due to an edit action performed by the data source control. |
IData |
Returns the view. |
IData |
Gets the view names. |
IState |
Returns a value that indicates whether the control is tracking view state. |
IState |
Loads the previously saved view state. |
IState |
Saves the state of the control. |
IState |
Tracks view-state changes to the control so that they can be stored in the StateBag object. |
Get |
Gets the collection of the default values for the specified data source. |
Get |
Gets the metadata for a table in the specified data source object. |
Try |
Determines whether table metadata is available. |
Product | Versions |
---|---|
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: