IDataEnvironment.GetDesignTimeConnection メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > IDataEnvironment.GetDesignTimeConnection メソッドの意味・解説 

IDataEnvironment.GetDesignTimeConnection メソッド

メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。

デザイン時に使用できるデータベース接続を取得します。

名前空間: System.ComponentModel.Design.Data
アセンブリ: System.Design (system.design.dll 内)
構文構文

Function GetDesignTimeConnection ( _
    connection As DesignerDataConnection _
) As DbConnection
Dim instance As IDataEnvironment
Dim connection As DesignerDataConnection
Dim returnValue As DbConnection

returnValue = instance.GetDesignTimeConnection(connection)
DbConnection GetDesignTimeConnection (
    DesignerDataConnection connection
)
DbConnection^ GetDesignTimeConnection (
    DesignerDataConnection^ connection
)
DbConnection GetDesignTimeConnection (
    DesignerDataConnection connection
)
function GetDesignTimeConnection (
    connection : DesignerDataConnection
) : DbConnection

パラメータ

connection

目的のデータベース接続。

戻り値
デザイン時に使用できる DbConnection オブジェクト。

解説解説

GetDesignTimeConnection メソッドは、コントロール デザイナで使用できるデータ ストアへの、有効で開いている接続を返します。

コントロール デザイナは、GetDesignTimeConnection を使用してデータ接続を取得する必要があり、ConnectionString プロパティを使用して接続を開くことはできません。

.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IDataEnvironment インターフェイス
IDataEnvironment メンバ
System.ComponentModel.Design.Data 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「IDataEnvironment.GetDesignTimeConnection メソッド」の関連用語

IDataEnvironment.GetDesignTimeConnection メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



IDataEnvironment.GetDesignTimeConnection メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS