SqlDataSource.GetViewNames SqlDataSource.GetViewNames SqlDataSource.GetViewNames SqlDataSource.GetViewNames Method

定义

获取名称的集合,这些名称表示与 SqlDataSource 控件关联的视图对象的列表。Gets a collection of names representing the list of view objects that are associated with the SqlDataSource control.

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,这些视图与 SqlDataSource 关联。An ICollection that contains the names of the views associated with the SqlDataSource.

注解

控件在其基础数据上仅支持一个名为"Table"的视图。 SqlDataSourceThe SqlDataSource control supports only one view on its underlying data, named "Table". GetViewNames方法返回这一个视图名称的单元素集合。The GetViewNames method returns a single-element collection of this one view name.

适用于

另请参阅