System::Data::Common::DbCommand クラス
DbCommand class
データベースコマンド。このクラスのオブジェクトは System::MakeObject() 関数を使用してのみ割り当てるべきです。この型のインスタンスをスタック上で作成したり operator new を使用したりしないでください。そうしないと実行時エラーやアサーション違反が発生します。常にこのクラスを System::SmartPtr ポインタでラップし、そのポインタを関数の引数として渡す際に使用してください。
class DbCommand : public System::Object
メソッド
| メソッド | 説明 |
|---|---|
| virtual ExecuteNonQuery() | クエリ以外のコマンドを実行します。 |
| virtual ExecuteReader() | クエリコマンドを実行します。 |
| virtual get_CommandText() const | RTTI 情報。 |
| virtual get_Connection() const | コマンドに関連付けられたデータベース接続を取得します。 |
| virtual set_CommandText(String) const | DB コマンドテキストを設定します。 |
| virtual set_Connection(SharedPtr<System::Data::Common::DbConnection>) | コマンドに関連付けられたデータベース接続を取得します。 |
参照
- Class Object
- Namespace System::Data::Common
- Library Aspose.Page for C++