DataSourceControl.IListSource.GetList Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a list of data source controls that can be used as sources of lists of data.
virtual System::Collections::IList ^ System.ComponentModel.IListSource.GetList() = System::ComponentModel::IListSource::GetList;
System.Collections.IList IListSource.GetList ();
abstract member System.ComponentModel.IListSource.GetList : unit -> System.Collections.IList
override this.System.ComponentModel.IListSource.GetList : unit -> System.Collections.IList
Function GetList () As IList Implements IListSource.GetList
Returns
An IList of data source controls that can be used as sources of lists of data.
Implements
Remarks
This method is used to retrieve a set of objects that can be used as sources of data. Data source controls encapsulate their lists of data as DataSourceView objects; therefore, when associated with one or more DataSourceView objects, a DataSourceControl control represents a list source object and the method returns an IList collection of one element, the DataSourceControl itself.
This method calls the static ListSourceHelper.GetList method to retrieve an IList collection of objects that can be used as sources of data. The ListSourceHelper class determines whether GetViewNames returns a valid collection of view names. If it does, the ListSourceHelper class returns an IList collection of one element, the DataSourceControl control. If GetViewNames returns null
, which is the default implementation of the DataSourceControl class, the ListSourceHelper class also returns null
.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기