DataSourceControl.IListSource.ContainsListCollection Property
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.
Indicates whether the data source control is associated with one or more lists of data.
property bool System::ComponentModel::IListSource::ContainsListCollection { bool get(); };
bool System.ComponentModel.IListSource.ContainsListCollection { get; }
member this.System.ComponentModel.IListSource.ContainsListCollection : bool
ReadOnly Property ContainsListCollection As Boolean Implements IListSource.ContainsListCollection
Property Value
true
if the DataSourceControl is associated with one or more DataSourceView objects; otherwise, false
.
Implements
Remarks
This property is used to determine whether the current object can be used as a source of one or more lists 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 property returns true
.
This property calls the static ListSourceHelper.ContainsListCollection method to determine whether the current data source control can be used as a source of data. The ListSourceHelper class determines whether the GetViewNames method returns a valid collection of view names. If it does, this property returns true
. If GetViewNames returns null
, which is the default implementation of the DataSourceControl class, the method returns false
.
Applies to
See also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應