DataSourceControl.IDataSource.GetViewNames Method

Definition

Gets a collection of names, representing the list of DataSourceView objects associated with the DataSourceControl control.

System.Collections.ICollection IDataSource.GetViewNames ();

Returns

An ICollection that contains the names of the DataSourceView objects associated with the DataSourceControl.

Implements

Remarks

注意

The DataSourceControl class's default implementation, which is called by this interface method, returns null, which indicates that only one view is supported. If you extend the DataSourceControl class, override the GetViewNames method to return a collection of view names. A name can be passed to the GetView method to return a DataSourceView object.

Applies to

產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also