OdbcCommand.Connection プロパティ
アセンブリ: System.Data (system.data.dll 内)
構文Public Property Connection As OdbcConnection
Dim instance As OdbcCommand Dim value As OdbcConnection value = instance.Connection instance.Connection = value
public OdbcConnection Connection { get; set; }
public: property OdbcConnection^ Connection { OdbcConnection^ get (); void set (OdbcConnection^ value); }
/** @property */ public OdbcConnection get_Connection () /** @property */ public void set_Connection (OdbcConnection value)
public function get Connection () : OdbcConnection public function set Connection (value : OdbcConnection)
データ ソースへの接続。既定値は null 値です。
例外
解説現在の接続で実行またはフェッチ操作が実行中の場合は、Connection、CommandType、および CommandText プロパティは設定できません。
トランザクションの進行中に Connection を設定した場合、Transaction プロパティが null 以外のときは、InvalidOperationException が生成されます。トランザクションがコミットまたはロールバックされた後に Connection を設定し、Transaction プロパティが null 以外の場合は、Transaction プロパティに null 値が設定されます。
プラットフォームWindows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照Weblioに収録されているすべての辞書からOdbcCommand.Connection プロパティを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からOdbcCommand.Connection プロパティ
を検索
- OdbcCommand.Connection プロパティのページへのリンク