ObjectDataSource.GetViewNames 方法

定义

检索一个名称集合,该集合表示与 ObjectDataSource 该对象关联的视图对象列表。

protected:
 override System::Collections::ICollection ^ GetViewNames();
protected override System.Collections.ICollection GetViewNames();
override this.GetViewNames : unit -> System.Collections.ICollection
Protected Overrides Function GetViewNames () As ICollection

返回

一个 ICollection 包含与 . ObjectDataSource. 关联的视图的名称。

注解

控件 ObjectDataSource 在其基础数据上仅支持一个名为的视图 DefaultView。 该方法 GetViewNames 返回此视图名称的单元素集合。

该方法 GetViewNames 旨在由数据绑定控件而不是页面代码调用。

适用于

另请参阅