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

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

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

構文

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

パラメーター

  • command
    型 : System.String
    データ ソースに固有のパラメーターを取得するコマンド。

戻り値

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

実装

IVsDataCommand.DeriveParameters(String, DataCommandType)

例外

例外 条件
ArgumentNullException

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

解説

パラメーターの派生オブジェクトのインスタンスを取得した後で、クライアントは、を所有し、必要に応じて値を変更できます。クライアントは 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