DataCommand.DeriveParameters メソッド (String, DataCommandType, Int32)

特定のコマンドに指定できるパラメーターを取得します。

名前空間:  Microsoft.VisualStudio.Data.Framework
アセンブリ:  Microsoft.VisualStudio.Data.Framework (Microsoft.VisualStudio.Data.Framework.dll 内)

構文

'宣言
Public Overridable Function DeriveParameters ( _
    command As String, _
    commandType As DataCommandType, _
    commandTimeout As Integer _
) As IVsDataParameter()
public virtual IVsDataParameter[] DeriveParameters(
    string command,
    DataCommandType commandType,
    int commandTimeout
)
public:
virtual array<IVsDataParameter^>^ DeriveParameters(
    String^ command, 
    DataCommandType commandType, 
    int commandTimeout
)
abstract DeriveParameters : 
        command:string * 
        commandType:DataCommandType * 
        commandTimeout:int -> IVsDataParameter[] 
override DeriveParameters : 
        command:string * 
        commandType:DataCommandType * 
        commandTimeout:int -> IVsDataParameter[] 
public function DeriveParameters(
    command : String, 
    commandType : DataCommandType, 
    commandTimeout : int
) : IVsDataParameter[]

パラメーター

  • command
    型 : System.String
    データ ソースに固有のパラメーターを取得するコマンド。
  • commandTimeout
    型 : System.Int32
    パラメーターの派生をキャンセルし、呼び出し元に戻す前にクライアントをブロック時間 (秒)。0 という値は無限タイムアウトを示しています; 値 -1 は、プロバイダーの既定値を表示します。

戻り値

型 : array<Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[]
IVsDataParameter オブジェクトの配列。各オブジェクトには、コマンドから派生したパラメーターを表します。

実装

IVsDataCommand.DeriveParameters(String, DataCommandType, Int32)

例外

例外 条件
ArgumentNullException

command パラメーターが nullnull 参照 (Visual Basic では Nothing) です。

ArgumentOutOfRangeException

commandTimeout パラメーターが -1 未満です。

解説

パラメーターの派生オブジェクトのインスタンスを取得した後で、クライアントは、を所有し、必要に応じて値を変更できます。クライアントは Text に設定されたコマンドの型と Execute か [M:Microsoft.VisualStudio.Data.Framework.DataCommand.ExecuteWithoutResults(System.String,T:Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType,Microsoft.VisualStudio.Data.Framework.DataParameter[],System.Int32)]に適切なタイムアウト値とともに、これらの値を渡します

呼び出します。

[!メモ]

パラメーターは、ほかの例外の派生がプロバイダー指定された理由で失敗したことを示します。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

DataCommand クラス

DeriveParameters オーバーロード

Microsoft.VisualStudio.Data.Framework 名前空間

CreateParameter