DbCommand.Connection DbCommand.Connection DbCommand.Connection DbCommand.Connection Property

定义

获取或设置此 DbConnection 使用的 DbCommandGets or sets the DbConnection used by this DbCommand.

public:
 property System::Data::Common::DbConnection ^ Connection { System::Data::Common::DbConnection ^ get(); void set(System::Data::Common::DbConnection ^ value); };
[System.ComponentModel.Browsable(false)]
public System.Data.Common.DbConnection Connection { get; set; }
member this.Connection : System.Data.Common.DbConnection with get, set
Public Property Connection As DbConnection

属性值

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

适用于

另请参阅