指定したデータ ソースの指定したデータ メンバを取得します。
Overloads Public Shared Function GetSelectedDataSource( _
ByVal component As IComponent, _ ByVal dataSource As String, _ ByVal dataMember As String _) As IEnumerable
[C#]
public static IEnumerable GetSelectedDataSource(IComponentcomponent,stringdataSource,stringdataMember);
[C++]
public: static IEnumerable* GetSelectedDataSource(IComponent* component,String* dataSource,String* dataMember);
[JScript]
public static function GetSelectedDataSource(
component : IComponent,dataSource : String,dataMember : String) : IEnumerable;
パラメータ
- component
データ ソースとなっているプロパティを格納している IComponent 。 - dataSource
取得するデータ ソース。 - dataMember
取得するデータ メンバ。
戻り値
データ メンバ。データ ソースまたはコンポーネントのサイトにアクセスできなかった場合は null 参照 (Visual Basic では Nothing) 。
必要条件
プラットフォーム: Windows 2000, Windows XP Professional, Windows Server 2003 ファミリ
.NET Framework セキュリティ:
- 直前の呼び出し元の完全信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細の参照先 : 部分信頼コードからのライブラリの使用
参照
DesignTimeData クラス | DesignTimeData メンバ | System.Web.UI.Design 名前空間 | DesignTimeData.GetSelectedDataSource オーバーロードの一覧