ModelDataSource Class
이 문서의 내용
Definition
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
Constructors
Model |
Initializes a new instance of the ModelDataSource class. |
Properties
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. |
Methods
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. |
Events
Calling |
Occurs when model binding is in use and data methods are being called. |
Explicit Interface Implementations
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. |
Extension Methods
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. |
Applies to
제품 | 버전 |
---|---|
.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 피드백
.NET은(는) 오픈 소스 프로젝트입니다. 다음 링크를 선택하여 피드백을 제공해 주세요.