Rediger

Del via


ListControlDesigner.GetResolvedSelectedDataSource Method

Definition

Gets the data source component from the associated control container, resolved to a specific data member.

public:
 virtual System::Collections::IEnumerable ^ GetResolvedSelectedDataSource();
public:
 System::Collections::IEnumerable ^ GetResolvedSelectedDataSource();
public System.Collections.IEnumerable GetResolvedSelectedDataSource ();
abstract member GetResolvedSelectedDataSource : unit -> System.Collections.IEnumerable
override this.GetResolvedSelectedDataSource : unit -> System.Collections.IEnumerable
member this.GetResolvedSelectedDataSource : unit -> System.Collections.IEnumerable
Public Function GetResolvedSelectedDataSource () As IEnumerable

Returns

An IEnumerable containing the design-time DataSource, resolved to the DataMember of the associated control.

Implements

Remarks

The GetSelectedDataSource method returns null if a DataSource property is not found, or if a DataSource with the same name does not exist.

If the DataSource cannot be resolved to the DataMember property of the associated control, the GetResolvedSelectedDataSource returns an IEnumerable interface containing the design-time DataSource.

Applies to

See also