次の方法で共有


DesignTimeData.GetSelectedDataSource メソッド (IComponent, String)

指定したデータ ソースを取得します。

Overloads Public Shared Function GetSelectedDataSource( _
   ByVal component As IComponent, _   ByVal dataSource As String _) As Object
[C#]
public static object GetSelectedDataSource(IComponentcomponent,stringdataSource);
[C++]
public: static Object* GetSelectedDataSource(IComponent* component,String* dataSource);
[JScript]
public static function GetSelectedDataSource(
   component : IComponent,dataSource : String) : Object;

パラメータ

  • component
    データ ソースを格納している IComponent
  • dataSource
    取得するデータ ソース。

戻り値

データ ソース オブジェクト。データ ソースまたはコンポーネントのサイトにアクセスできなかった場合は null 参照 (Visual Basic では Nothing) 。

必要条件

プラットフォーム: Windows 2000, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

DesignTimeData クラス | DesignTimeData メンバ | System.Web.UI.Design 名前空間 | DesignTimeData.GetSelectedDataSource オーバーロードの一覧