ObjectDataSourceView 类

定义

支持 ObjectDataSource 控件并提供一个接口,使数据绑定控件可以对业务对象和数据对象执行数据操作。Supports the ObjectDataSource control and provides an interface for data-bound controls to perform data operations with business and data objects.

public ref class ObjectDataSourceView : System::Web::UI::DataSourceView, System::Web::UI::IStateManager
public class ObjectDataSourceView : System.Web.UI.DataSourceView, System.Web.UI.IStateManager
type ObjectDataSourceView = class
    inherit DataSourceView
    interface IStateManager
Public Class ObjectDataSourceView
Inherits DataSourceView
Implements IStateManager
继承
ObjectDataSourceView
实现

注解

ObjectDataSourceView类主要用于数据绑定控件, 而不是页代码中的可编程对象。The ObjectDataSourceView class is intended primarily to be used by data-bound controls, and not as a programmable object in page code.

ObjectDataSource Select Update Delete类实现控件的数据功能, 包括、、和Insert操作、排序、筛选和管理保存在视图状态中的设置。 ObjectDataSourceViewThe ObjectDataSourceView class implements the data functionality for the ObjectDataSource control, including the Select, Update, Delete, and Insert operations, sorting, filtering, and management of settings kept in view state.

ObjectDataSourceView运行时为ObjectDataSource类的每个实例创建一个对象。A ObjectDataSourceView object is created for each instance of the ObjectDataSource class at run time. ObjectDataSource类的实例的数据操作的调用由ObjectDataSourceView对象的实例来处理。Calls to data operations of the instance of the ObjectDataSource class are handled by the instance of the ObjectDataSourceView object. 页面开发人员不直接访问ObjectDataSourceView类的实例。Page developers do not access the instance of the ObjectDataSourceView class directly. 控件开发人员可以通过扩展ObjectDataSourceObjectDataSourceView类来创建自定义数据控件。Control developers can create custom data controls by extending the ObjectDataSource and ObjectDataSourceView classes.

ObjectDataSourceView类通过使用反射对业务或数据对象调用方法来执行数据操作。The ObjectDataSourceView class performs data operations by calling methods on business or data objects using reflection. 在运行时, ObjectDataSource控件创建TypeName由属性标识的类型的实例, 然后为数据操作调用适当的方法。At run time, the ObjectDataSource control creates an instance of the type that is identified by the TypeName property, and then calls the appropriate method for the data operation. 实例化对象不在内存ObjectDataSourceView中缓存。The instantiated object is not cached in memory by the ObjectDataSourceView. 为每个数据方法调用创建并销毁对象。The object is created and destroyed for every data method call. 如果该方法为static (Shared在 Visual Basic 中), 则不会创建实例, 但仍会调用数据操作方法。If the method is static (Shared in Visual Basic), an instance is not created but the data operation method is still called.

ObjectDataSource控件不会直接向页面ObjectDataSourceView开发人员公开。The ObjectDataSourceView is not directly exposed to page developers by the ObjectDataSource control. 而是ObjectDataSourceView ObjectDataSource通过访问的属性和方法。Instead, the properties and methods of the ObjectDataSourceView are accessed through the ObjectDataSource. 例如, DeleteMethod通过ObjectDataSourceView设置的属性设置的属性。 ObjectDataSource DeleteMethodFor example, the DeleteMethod of ObjectDataSourceView property is set by setting the DeleteMethod property of the ObjectDataSource.

检索数据Retrieving Data

数据源视图执行的最基本操作是使用Select方法从基础数据存储中检索数据, 该方法将IEnumerable检索数据项的集合。The most basic operation that a data source view performs is data retrieval from the underlying data storage using the Select method, which retrieves an IEnumerable collection of data items. 以下数据检索方法、属性和事件由ObjectDataSourceView对象实现并直接由其ObjectDataSource控件向页面开发人员和其他调用方公开:The following data retrieval methods, properties, and events are implemented by the ObjectDataSourceView object and exposed directly by its ObjectDataSource control to page developers and other callers:

更新数据Updating Data

对象通过调用UpdateMethod由属性标识的业务或数据对象方法来支持数据更新。 ObjectDataSourceViewThe ObjectDataSourceView object supports data updates by calling a business or data object method that is identified by the UpdateMethod property. 自动执行更新的数据绑定控件 ( GridView如和DetailsView控件) 会将IOrderedDictionary接口ObjectDataSourceView中的参数传递给, 而视图对象则会将这些参数与任何参数 (在UpdateParameters集合中找到。Data-bound controls that automatically perform updates, such as the GridView and DetailsView controls, pass their parameters in an IOrderedDictionary interface to the ObjectDataSourceView and the view object merges these parameters with any parameters that are found in the UpdateParameters collection.

以下更新方法、属性和事件由ObjectDataSourceView实现并直接由其ObjectDataSource控件向页面开发人员和其他调用方公开:The following update methods, properties, and events are implemented by the ObjectDataSourceView and exposed directly by its ObjectDataSource control to page developers and other callers:

插入数据Inserting Data

对象支持通过调用InsertMethod由属性标识的业务或数据对象方法插入新的数据行。 ObjectDataSourceViewThe ObjectDataSourceView object supports inserting new rows of data by calling a business or data object method that is identified by the InsertMethod property. 自动执行插入的数据绑定控件 ( GridView如和DetailsView) 将ObjectDataSourceViewIOrderedDictionary接口中将它们的参数传递给, 并且视图对象将这些参数与中找到的任何参数合并InsertParameters集合。Data-bound controls that automatically perform inserts, such as the GridView and DetailsView, pass their parameters in an IOrderedDictionary interface to the ObjectDataSourceView and the view object merges these parameters with any parameters that are found in the InsertParameters collection.

以下插入方法、属性和事件由ObjectDataSourceView实现并直接由其ObjectDataSource控件向页面开发人员和其他调用方公开:The following insert methods, properties, and events are implemented by the ObjectDataSourceView and exposed directly by its ObjectDataSource control to page developers and other callers:

删除数据Deleting Data

对象支持通过调用DeleteMethod由属性标识的业务或数据对象方法来删除数据。 ObjectDataSourceViewThe ObjectDataSourceView object supports deleting data by calling a business or data object method that is identified by the DeleteMethod property. 自动执行删除的数据绑定控件 ( GridView如和DetailsView) 将ObjectDataSourceViewIOrderedDictionary接口中将它们的参数传递给, 并且视图对象将这些参数与中找到的任何参数合并DeleteParameters集合。Data-bound controls that automatically perform deletes, such as the GridView and DetailsView, pass their parameters in an IOrderedDictionary interface to the ObjectDataSourceView and the view object merges these parameters with any parameters that are found in the DeleteParameters collection. 以下 delete 方法、属性和事件由ObjectDataSourceView实现并直接由其ObjectDataSource控件向页面开发人员和其他调用方公开:The following delete methods, properties, and events are implemented by the ObjectDataSourceView and exposed directly by its ObjectDataSource control to page developers and other callers:

对数据进行筛选和排序Filtering and Sorting Data

当你可以动态筛选数据时, 数据检索功能更强大。Data retrieval is more powerful when you can filter the data dynamically. 仅当该Select方法返回DataTableObjectDataSource DataSet对象时, 控件才支持筛选。Filtering is supported only by the ObjectDataSource control if the Select method returns a DataTable or DataSet object. 您可以使用FilterExpressionFilterParameters属性将动态筛选应用到数据检索。You can use the FilterExpression and FilterParameters properties to apply dynamic filtering to data retrieval. 这些属性由ObjectDataSourceView对象实现, 由其ObjectDataSource控件直接向数据绑定控件和其他调用方公开。These properties are implemented by the ObjectDataSourceView object and exposed directly by its ObjectDataSource control to data-bound controls and other callers.

您可以ObjectDataSource通过在检索数据后对其进行排序来对检索到的数据进行排序。You can sort the data that you retrieve with the ObjectDataSource by ordering the data in memory after it is retrieved. 仅当该Select方法返回DataTableObjectDataSource DataSet时, 控件才支持排序。Sorting is supported only by the ObjectDataSource control if the Select method returns a DataTable or DataSet. 属性始终返回true, ObjectDataSourceView 因为Select无法确定方法返回的类型, 而不调用方法。 CanSortThe CanSort property always returns true, because the ObjectDataSourceView cannot determine what type is returned by the Select method without calling the method. 属性语法与DataView.Sort属性的语法相同。 SortExpressionThe SortExpression property syntax is the same as for a DataView.Sort property.

跟踪视图状态Tracking View State

ObjectDataSourceView 实现接口,并使用视图状态在页请求IStateManager之间跟踪其状态。The ObjectDataSourceView implements the IStateManager interface and uses view state to track its state across page requests. LoadViewState提供、和SaveViewState方法的实现,以便为控件启用TrackViewState视图状态跟踪。Implementation of the LoadViewState, SaveViewState, and TrackViewState methods are provided to enable view state tracking for the control. 有关详细信息, 请参阅ASP.NET 状态管理概述For more information, see ASP.NET State Management Overview.

构造函数

ObjectDataSourceView(ObjectDataSource, String, HttpContext)

初始化 ObjectDataSourceView 类的新实例。Initializes a new instance of the ObjectDataSourceView class.

属性

CanDelete

获取一个值,该值指示与当前的 ObjectDataSourceView 控件关联的 ObjectDataSource 对象是否支持删除操作。Gets a value indicating whether the ObjectDataSourceView object that is associated with the current ObjectDataSource control supports the delete operation.

CanInsert

获取一个值,该值指示与当前的 ObjectDataSourceView 控件关联的 ObjectDataSource 对象是否支持插入操作。Gets a value indicating whether the ObjectDataSourceView object that is associated with the current ObjectDataSource control supports the insert operation.

CanPage

获取一个值,该值指示与当前的 ObjectDataSourceView 控件关联的 ObjectDataSource 对象是否支持对检索的数据分页。Gets a value indicating whether the ObjectDataSourceView object that is associated with the current ObjectDataSource control supports paging through the retrieved data.

CanRetrieveTotalRowCount

获取一个值,该值指示与当前的 ObjectDataSourceView 控件关联的 ObjectDataSource 对象除了支持检索数据集外,是否还支持检索数据行总数。Gets a value indicating whether the ObjectDataSourceView object that is associated with the current ObjectDataSource control supports retrieving the total number of data rows, in addition to the set of data.

CanSort

获取一个值,该值指示与当前 ObjectDataSource 控件相关联的 ObjectDataSourceView 对象是否支持基础数据源上的排序视图。Gets a value indicating whether the ObjectDataSourceView object that is associated with the current ObjectDataSource control supports a sorted view on the underlying data source.

CanUpdate

获取一个值,该值指示与当前的 ObjectDataSourceView 控件关联的 ObjectDataSource 对象是否支持更新操作。Gets a value indicating whether the ObjectDataSourceView object that is associated with the current ObjectDataSource control supports the update operation.

ConflictDetection

获取或设置一个值,该值确定在操作期间,当基础数据存储中某行的数据更改时,ObjectDataSource 控件如何执行更新和删除操作。Gets or sets a value that determines how the ObjectDataSource control performs updates and deletes when data in a row in the underlying data storage changes during the time of the operation.

ConvertNullToDBNull

获取或设置一个值,该值指示传递给更新、插入或删除操作的 Parameter 值是否自动从 null 转换为 Value 值。Gets or sets a value indicating whether Parameter values that are passed to an update, insert, or delete operation are automatically converted from null to the Value value.

DataObjectTypeName

获取或设置 ObjectDataSource 控件用于数据操作中的参数的类的名称。Gets or sets the name of a class that the ObjectDataSource control uses for a parameter in a data operation. ObjectDataSource 控件使用指定的类,而不是位于各种参数集合中的 Parameter 对象。The ObjectDataSource control uses the specified class instead of the Parameter objects that are in the various parameters collections.

DeleteMethod

获取或设置 ObjectDataSourceView 对象调用以删除数据的方法或函数的名称。Gets or sets the name of the method or function that the ObjectDataSourceView object invokes to delete data.

DeleteParameters

获取参数集合,该集合包含由 DeleteMethod 方法使用的参数。Gets the parameters collection that contains the parameters that are used by the DeleteMethod method.

EnablePaging

获取或设置一个值,该值指示数据源控件是否支持对它检索的数据集进行分页。Gets or sets a value indicating whether the data source control supports paging through the set of data that it retrieves.

Events

获取数据源视图的事件处理程序委托的列表。Gets a list of event-handler delegates for the data source view.

(继承自 DataSourceView)
FilterExpression

获取或设置在调用由 SelectMethod 属性标识的业务对象方法时应用的筛选表达式。Gets or sets a filtering expression that is applied when the business object method that is identified by the SelectMethod property is called.

FilterParameters

获取与 FilterExpression 字符串中的任何参数占位符关联的参数的集合。Gets a collection of parameters that are associated with any parameter placeholders that are in the FilterExpression string.

InsertMethod

获取或设置 ObjectDataSourceView 对象调用以插入数据的方法或函数的名称。Gets or sets the name of the method or function that the ObjectDataSourceView object invokes to insert data.

InsertParameters

获取参数集合,该集合包含由 InsertMethod 方法使用的参数。Gets the parameters collection that contains the parameters that are used by the InsertMethod method.

IsTrackingViewState

获取一个值,该值指示 ObjectDataSourceView 对象是否保存对其视图状态的更改。Gets a value indicating whether the ObjectDataSourceView object is saving changes to its view state.

MaximumRowsParameterName

获取或设置数据检索方法参数的名称,该参数用于指示为数据源分页支持检索的记录数。Gets or sets the name of the data retrieval method parameter that is used to indicate the number of records to retrieve for data source paging support.

Name

获取数据源视图的名称。Gets the name of the data source view.

(继承自 DataSourceView)
OldValuesParameterFormatString

获取或设置一个格式字符串,该字符串应用于传递给 DeleteUpdate 方法的原始值的参数名称。Gets or sets a format string to apply to the names of the parameters for original values that are passed to the Delete or Update methods.

ParsingCulture

当将字符串值转换为实际属性类型来构造由 DataObjectTypeName 指示的对象类型时,获取或设置表示哪些区域性信息被用了的值。Gets a or sets a value that indicates what culture information is used when converting string values to actual property types in order to construct an object of the type indicated by DataObjectTypeName.

SelectCountMethod

获取或设置 ObjectDataSourceView 控件调用以检索行数的方法或函数的名称。Gets or sets the name of the method or function that the ObjectDataSourceView control invokes to retrieve a row count.

SelectMethod

获取或设置 ObjectDataSourceView 控件调用以检索数据的方法或函数的名称。Gets or sets the name of the method or function that the ObjectDataSourceView control invokes to retrieve data.

SelectParameters

获取参数集合,该集合包含由 SelectMethod 方法使用的参数。Gets the parameters collection containing the parameters that are used by the SelectMethod method.

SortParameterName

获取或设置数据检索方法参数的名称,该参数用于指定数据源排序支持的排序表达式。Gets or sets the name of the data retrieval method parameter that is used to specify a sort expression for data source sorting support.

StartRowIndexParameterName

获取或设置数据检索方法参数的名称,该参数用于指示从数据源分页支持的结果集中检索的第一条记录的整数索引。Gets or sets the name of the data retrieval method parameter that is used to indicate the integer index of the first record to retrieve from the results set for data source paging support.

TypeName

获取或设置 ObjectDataSource 控件表示的类的名称。Gets or sets the name of the class that the ObjectDataSource control represents.

UpdateMethod

获取或设置 ObjectDataSourceView 对象调用以更新数据的方法或函数的名称。Gets or sets the name of the method or function that the ObjectDataSourceView object invokes to update data.

UpdateParameters

获取参数集合,该集合包含由 UpdateMethod 方法使用的参数。Gets the parameters collection containing the parameters that are used by the UpdateMethod method.

方法

CanExecute(String)

确定是否能执行指定命令。Determines whether the specified command can be executed.

(继承自 DataSourceView)
Delete(IDictionary, IDictionary)

执行删除操作,方法是使用指定的 keysoldValues 集合调用由 DeleteMethod 属性标识的业务对象方法。Performs a delete operation by calling the business object method that is identified by the DeleteMethod property using the specified keys and oldValues collections.

Delete(IDictionary, IDictionary, DataSourceViewOperationCallback)

DataSourceView 对象所表示的数据列表执行异步删除操作。Performs an asynchronous delete operation on the list of data that the DataSourceView object represents.

(继承自 DataSourceView)
Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
ExecuteCommand(String, IDictionary, IDictionary)

执行指定的命令。Executes the specified command.

(继承自 DataSourceView)
ExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback)

执行指定的命令。Executes the specified command.

(继承自 DataSourceView)
ExecuteDelete(IDictionary, IDictionary)

使用 DeleteMethod 方法和指定的 keysoldValues 集合执行删除操作。Performs a delete operation using the DeleteMethod method and the specified keys and oldValues collection.

ExecuteInsert(IDictionary)

执行插入操作,方法是使用指定的 values 集合调用由 InsertMethod 属性标识的业务对象方法。Performs an insert operation by calling the business object method that is identified by the InsertMethod property using the specified values collection.

ExecuteSelect(DataSourceSelectArguments)

通过调用 TypeName 属性标识的方法并传递 SelectMethod 集合中的所有值,从 SelectParameters 属性标识的对象中检索数据。Retrieves data from the object that is identified by the TypeName property by calling the method that is identified by the SelectMethod property and passing any values in the SelectParameters collection.

ExecuteUpdate(IDictionary, IDictionary, IDictionary)

通过调用由 UpdateMethod 属性标识的方法和使用 keysvaluesoldValues 集合中提供的所有参数以执行更新操作。Performs an update operation by calling the method that is identified by the UpdateMethod property and using any parameters that are supplied in the keys, values, or oldValues collections.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
Insert(IDictionary)

执行插入操作,方法是使用指定的 values 集合调用由 InsertMethod 属性标识的业务对象方法。Performs an insert operation by calling the business object method that is identified by the InsertMethod property using the specified values collection.

Insert(IDictionary, DataSourceViewOperationCallback)

DataSourceView 对象所表示的数据列表执行异步插入操作。Performs an asynchronous insert operation on the list of data that the DataSourceView object represents.

(继承自 DataSourceView)
LoadViewState(Object)

还原数据源视图的以前保存的视图状态。Restores previously saved view state for the data source view.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
OnDataSourceViewChanged(EventArgs)

引发 DataSourceViewChanged 事件。Raises the DataSourceViewChanged event.

(继承自 DataSourceView)
OnDeleted(ObjectDataSourceStatusEventArgs)

Deleted 对象完成删除操作后引发 ObjectDataSourceView 事件。Raises the Deleted event after the ObjectDataSourceView object has completed a delete operation.

OnDeleting(ObjectDataSourceMethodEventArgs)

Deleting 对象尝试执行删除操作之前引发 ObjectDataSourceView 事件。Raises the Deleting event before the ObjectDataSourceView object attempts a delete operation.

OnFiltering(ObjectDataSourceFilteringEventArgs)

Filtering 对象尝试执行筛选操作前引发 ObjectDataSourceView 事件。Raises the Filtering event before the ObjectDataSourceView object attempts a filtering operation.

OnInserted(ObjectDataSourceStatusEventArgs)

Inserted 对象完成插入操作后引发 ObjectDataSourceView 事件。Raises the Inserted event after the ObjectDataSourceView object has completed an insert operation.

OnInserting(ObjectDataSourceMethodEventArgs)

Inserting 对象尝试执行插入操作之前引发 ObjectDataSourceView 事件。Raises the Inserting event before the ObjectDataSourceView object attempts an insert operation.

OnObjectCreated(ObjectDataSourceEventArgs)

ObjectCreated 创建 ObjectDataSourceView 属性标识的对象的实例之后引发 TypeName 事件。Raises the ObjectCreated event after the ObjectDataSourceView creates an instance of the object that is identified by the TypeName property.

OnObjectCreating(ObjectDataSourceEventArgs)

ObjectCreating 对象创建业务对象的实例以执行数据操作之前引发 ObjectDataSourceView 事件。Raises the ObjectCreating event before the ObjectDataSourceView object creates an instance of a business object to perform a data operation.

OnObjectDisposing(ObjectDataSourceDisposingEventArgs)

ObjectDisposing 对象丢弃实例化类型之前引发 ObjectDataSourceView 事件。Raises the ObjectDisposing event before the ObjectDataSourceView object discards an instantiated type.

OnSelected(ObjectDataSourceStatusEventArgs)

Selected 对象已经完成数据检索操作后引发 ObjectDataSourceView 事件。Raises the Selected event after the ObjectDataSourceView object has completed a data retrieval operation.

OnSelecting(ObjectDataSourceSelectingEventArgs)

Selecting 对象尝试执行数据检索操作之前引发 ObjectDataSourceView 事件。Raises the Selecting event before the ObjectDataSourceView object attempts a data retrieval operation.

OnUpdated(ObjectDataSourceStatusEventArgs)

Updated 对象已经完成更新操作后引发 ObjectDataSourceView 事件。Raises the Updated event after the ObjectDataSourceView object has completed an update operation.

OnUpdating(ObjectDataSourceMethodEventArgs)

Updating 对象尝试执行更新操作之前引发 ObjectDataSourceView 事件。Raises the Updating event before the ObjectDataSourceView object attempts an update operation.

RaiseUnsupportedCapabilityError(DataSourceCapabilities)

RaiseUnsupportedCapabilitiesError(DataSourceView) 方法调用,用于将 ExecuteSelect(DataSourceSelectArguments) 操作所请求的功能与视图所支持的功能进行比较。Called by the RaiseUnsupportedCapabilitiesError(DataSourceView) method to compare the capabilities requested for an ExecuteSelect(DataSourceSelectArguments) operation against those that the view supports.

(继承自 DataSourceView)
SaveViewState()

保存自页回发到服务器后,ObjectDataSourceView 对象的视图状态更改。Saves the changes to the view state for the ObjectDataSourceView object since the time when the page was posted back to the server.

Select(DataSourceSelectArguments)

通过调用 TypeName 属性标识的方法并传递 SelectMethod 集合中的所有值,从 SelectParameters 属性标识的对象中检索数据。Retrieves data from the object that is identified by the TypeName property by calling the method that is identified by the SelectMethod property and passing any values in the SelectParameters collection.

Select(DataSourceSelectArguments, DataSourceViewSelectCallback)

从基础数据存储中异步获取数据列表。Gets a list of data asynchronously from the underlying data storage.

(继承自 DataSourceView)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)
TrackViewState()

使 ObjectDataSourceView 对象跟踪其视图状态的更改,以便这些更改可以存储在控件的 ViewState 对象中并且能够在同一页的不同请求间保持。Causes the ObjectDataSourceView object to track changes to its view state so that the changes can be stored in the ViewState object for the control and persisted across requests for the same page.

Update(IDictionary, IDictionary, IDictionary)

通过调用由 UpdateMethod 属性标识的方法和使用 keysvaluesoldValues 集合中提供的所有参数以执行更新操作。Performs an update operation by calling the method that is identified by the UpdateMethod property and using any parameters that are supplied in the keys, values, or oldValues collections.

Update(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback)

DataSourceView 对象所表示的数据列表执行异步更新操作。Performs an asynchronous update operation on the list of data that the DataSourceView object represents.

(继承自 DataSourceView)

事件

DataSourceViewChanged

在数据源视图更改时发生。Occurs when the data source view has changed.

(继承自 DataSourceView)
Deleted

Delete 操作完成时发生。Occurs when a Delete operation has completed.

Deleting

Delete 操作前发生。Occurs before a Delete operation.

Filtering

执行筛选操作前发生。Occurs before a filter operation.

Inserted

Insert 操作完成时发生。Occurs when an Insert operation has completed.

Inserting

Insert 操作前发生。Occurs before an Insert operation.

ObjectCreated

ObjectDataSourceView 对象创建 TypeName 属性标识的类型的实例后发生。Occurs after the ObjectDataSourceView object creates an instance of the type that is identified by the TypeName property.

ObjectCreating

ObjectDataSourceView 对象创建 TypeName 属性标识的类型的实例之前发生。Occurs before the ObjectDataSourceView object creates an instance of the type that is identified by the TypeName property.

ObjectDisposing

ObjectDataSourceView 对象丢弃已经创建的对象的实例时发生。Occurs when the ObjectDataSourceView object discards an instance of an object that it has created.

Selected

数据检索操作完成后发生。Occurs when a data retrieval operation has completed.

Selecting

执行数据检索操作前发生。Occurs before a data retrieval operation.

Updated

Update 操作完成时发生。Occurs when an Update operation has completed.

Updating

Update 操作前发生。Occurs before an Update operation.

显式界面实现

IStateManager.IsTrackingViewState

有关此成员的说明,请参见 IsTrackingViewStateFor a description of this member, see IsTrackingViewState.

IStateManager.LoadViewState(Object)

有关此成员的说明,请参见 LoadViewState(Object)For a description of this member, see LoadViewState(Object).

IStateManager.SaveViewState()

有关此成员的说明,请参见 SaveViewState()For a description of this member, see SaveViewState().

IStateManager.TrackViewState()

有关此成员的说明,请参见 TrackViewState()For a description of this member, see TrackViewState().

适用于

另请参阅