IDbCommand.Connection 属性

定义

获取或设置 IDbConnection 的此实例使用的 IDbCommandGets or sets the IDbConnection used by this instance of the IDbCommand.

public:
 property System::Data::IDbConnection ^ Connection { System::Data::IDbConnection ^ get(); void set(System::Data::IDbConnection ^ value); };
public System.Data.IDbConnection Connection { get; set; }
member this.Connection : System.Data.IDbConnection with get, set
Public Property Connection As IDbConnection

属性值

与数据源的连接。The connection to the data source.

适用于