Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (日本語) » Ultra Light - .NET プログラミング » Ultra Light .NET 2.0 API リファレンス » ULCommand クラス » ULCommand コンストラクタ

 

ULCommand(String, ULConnection) コンストラクタ

ULCommand オブジェクトを、指定されたコマンド・テキストと接続で初期化します。

構文
Visual Basic
Public Sub New( _
   ByVal cmdText As String, _
   ByVal connection As ULConnection _
)
C#
public  ULCommand(
   string  cmdText,
   ULConnection connection
);
パラメータ
  • cmdText   ULCommand.CommandType が System.Data.CommandType.TableDirect である場合の、SQL 文のテキストまたはテーブルの名前。パラメータ化された文の場合、疑問符 (?) プレースホルダを使用してパラメータを渡します。

  • connection   現在の接続を表す ULConnection オブジェクト。

備考

ULCommand オブジェクトに ULCommand.Transaction が設定されていないと、文を実行できないことがあります。

参照