DesignTimeData.GetSelectedDataSource 메서드

정의

지정된 구성 요소의 사이트 속성이 나타내는 디자인 호스트에서 이름으로 선택한 데이터 원본을 가져옵니다.

오버로드

Name Description
GetSelectedDataSource(IComponent, String)

디자인 호스트에서 이름으로 선택한 데이터 원본을 가져오며, 지정된 구성 요소의 사이트 속성으로 표시되고 지정된 데이터 원본 이름으로 식별됩니다.

GetSelectedDataSource(IComponent, String, String)

디자인 호스트에서 이름으로 선택한 데이터 원본을 가져오며, 지정된 구성 요소의 사이트 속성으로 표시되고 지정된 데이터 원본 이름 및 멤버 이름으로 식별됩니다.

GetSelectedDataSource(IComponent, String)

디자인 호스트에서 이름으로 선택한 데이터 원본을 가져오며, 지정된 구성 요소의 사이트 속성으로 표시되고 지정된 데이터 원본 이름으로 식별됩니다.

public:
 static System::Object ^ GetSelectedDataSource(System::ComponentModel::IComponent ^ component, System::String ^ dataSource);
public static object GetSelectedDataSource(System.ComponentModel.IComponent component, string dataSource);
static member GetSelectedDataSource : System.ComponentModel.IComponent * string -> obj
Public Shared Function GetSelectedDataSource (component As IComponent, dataSource As String) As Object

매개 변수

component
IComponent

IComponent 데이터 원본을 포함하는 개체입니다.

dataSource
String

검색할 데이터 원본의 이름입니다.

반품

선택한 데이터 원본을 IListSource 구현하거나 나타내는 개체이거나 IEnumerablenull 데이터 원본 또는 디자이너 호스트에 액세스할 수 없는 경우입니다.

추가 정보

적용 대상

GetSelectedDataSource(IComponent, String, String)

디자인 호스트에서 이름으로 선택한 데이터 원본을 가져오며, 지정된 구성 요소의 사이트 속성으로 표시되고 지정된 데이터 원본 이름 및 멤버 이름으로 식별됩니다.

public:
 static System::Collections::IEnumerable ^ GetSelectedDataSource(System::ComponentModel::IComponent ^ component, System::String ^ dataSource, System::String ^ dataMember);
public static System.Collections.IEnumerable GetSelectedDataSource(System.ComponentModel.IComponent component, string dataSource, string dataMember);
static member GetSelectedDataSource : System.ComponentModel.IComponent * string * string -> System.Collections.IEnumerable
Public Shared Function GetSelectedDataSource (component As IComponent, dataSource As String, dataMember As String) As IEnumerable

매개 변수

component
IComponent

데이터 원본 속성을 포함하는 개체 구현 IComponent 입니다.

dataSource
String

검색할 데이터 원본입니다.

dataMember
String

검색할 데이터 멤버입니다.

반품

데이터 멤버를 IEnumerable 포함하는 개체를 구현하거나 null 데이터 원본, 멤버 또는 구성 요소의 사이트에 액세스할 수 없는 경우

추가 정보

적용 대상