Export (0) Print
Expand All

ModelDataSource Class

.NET Framework 4.5

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

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

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

type ModelDataSource =  
    class 
        interface IDataSource 
        interface IStateManager 
    end

The ModelDataSource type exposes the following members.

  NameDescription
Public methodModelDataSourceInitializes a new instance of the ModelDataSource class.
Top

  NameDescription
Public propertyDataControlGets the data-bound control that is using this control as a data source when model binding is in use.
Public propertyViewGets the default (and only) view object for this data source control.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodIsTrackingViewStateInfrastructure. Returns a value that indicates whether the control is tracking view state.
Protected methodLoadViewStateInfrastructure. Loads the previously saved view state.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodSaveViewStateInfrastructure. Saves the state of the control.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Protected methodTrackViewStateInfrastructure. Tracks view-state changes to the control so that they can be stored in the System.Web.UI.StateBag object.
Public methodUpdateProperties(String, String)Updates the required properties for one-way data binding.
Public methodUpdateProperties(String, String, String, String, String, String)Updates the required properties for two-way data binding.
Top

  NameDescription
Public eventCallingDataMethodsOccurs when model binding is in use and data methods are being called.
Top

  NameDescription
Public Extension MethodGetDefaultValuesGets the collection of the default values for the specified data source. (Defined by DynamicDataExtensions.)
Public Extension MethodGetMetaTableGets the metadata for a table in the specified data source object. (Defined by DynamicDataExtensions.)
Public Extension MethodTryGetMetaTableDetermines whether table metadata is available. (Defined by DynamicDataExtensions.)
Top

  NameDescription
Explicit interface implemetationPrivate eventIDataSource.DataSourceChangedOccurs 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.
Explicit interface implemetationPrivate methodIDataSource.GetViewInfrastructure. Returns the view.
Explicit interface implemetationPrivate methodIDataSource.GetViewNamesInfrastructure. Gets the view names.
Explicit interface implemetationPrivate propertyIStateManager.IsTrackingViewStateInfrastructure. Returns a value that indicates whether the control is tracking view state.
Explicit interface implemetationPrivate methodIStateManager.LoadViewStateInfrastructure. Loads the previously saved view state.
Explicit interface implemetationPrivate methodIStateManager.SaveViewStateInfrastructure. Saves the state of the control.
Explicit interface implemetationPrivate methodIStateManager.TrackViewStateInfrastructure. Tracks view-state changes to the control so that they can be stored in the System.Web.UI.StateBag object.
Top

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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