ModelDataSource Class
TOC
Collapse the table of content
Expand the table of content

ModelDataSource Class

.NET Framework (current version)
 

The data source control used by data-bound controls to perform CRUD (create, read, update, delete) operations when model binding is in use.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

System.Object
  System.Web.UI.WebControls.ModelDataSource

type ModelDataSource = 
    class
        interface IDataSource
        interface IStateManager
    end

NameDescription
System_CAPS_pubmethodModelDataSource(Control)

Initializes a new instance of the ModelDataSource class.

NameDescription
System_CAPS_pubpropertyDataControl

Gets the data-bound control that is using this control as a data source when model binding is in use.

System_CAPS_pubpropertyView

Gets the default (and only) view object for this data source control.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodIsTrackingViewState()

This API supports the product infrastructure and is not intended to be used directly from your code. Returns a value that indicates whether the control is tracking view state.

System_CAPS_protmethodLoadViewState(Object)

This API supports the product infrastructure and is not intended to be used directly from your code. Loads the previously saved view state.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodSaveViewState()

This API supports the product infrastructure and is not intended to be used directly from your code. Saves the state of the control.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_protmethodTrackViewState()

This API supports the product infrastructure and is not intended to be used directly from your code. Tracks view-state changes to the control so that they can be stored in the System.Web.UI.StateBag object.

System_CAPS_pubmethodUpdateProperties(String, String)

Updates the required properties for one-way data binding.

System_CAPS_pubmethodUpdateProperties(String, String, String, String, String, String)

Updates the required properties for two-way data binding.

NameDescription
System_CAPS_pubeventCallingDataMethods

Occurs when model binding is in use and data methods are being called.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_priveventIDataSource.DataSourceChanged

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.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataSource.GetView(String)

This API supports the product infrastructure and is not intended to be used directly from your code. Returns the view.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataSource.GetViewNames()

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the view names.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIStateManager.LoadViewState(Object)

This API supports the product infrastructure and is not intended to be used directly from your code. Loads the previously saved view state.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIStateManager.SaveViewState()

This API supports the product infrastructure and is not intended to be used directly from your code. Saves the state of the control.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIStateManager.TrackViewState()

This API supports the product infrastructure and is not intended to be used directly from your code. Tracks view-state changes to the control so that they can be stored in the System.Web.UI.StateBag object.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIStateManager.IsTrackingViewState

This API supports the product infrastructure and is not intended to be used directly from your code. Returns a value that indicates whether the control is tracking view state.

NameDescription
System_CAPS_pubmethodGetDefaultValues()

Overloaded. Gets the collection of the default values for the specified data source.(Defined by DynamicDataExtensions.)

System_CAPS_pubmethodGetMetaTable()

Overloaded. Gets the metadata for a table in the specified data source object.(Defined by DynamicDataExtensions.)

System_CAPS_pubmethodTryGetMetaTable(MetaTable)

Overloaded. Determines whether table metadata is available.(Defined by DynamicDataExtensions.)

.NET Framework
Available since 4.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft