特定のコマンドに指定できるパラメーターを取得します
名前空間: Microsoft.VisualStudio.Data.AdoDotNet
アセンブリ: Microsoft.VisualStudio.Data (Microsoft.VisualStudio.Data.dll 内)
構文
'宣言
Public Overridable Function DeriveParameters ( _
command As String, _
commandType As Integer, _
commandTimeout As Integer _
) As DataParameter()
public virtual DataParameter[] DeriveParameters(
string command,
int commandType,
int commandTimeout
)
public:
virtual array<DataParameter^>^ DeriveParameters(
String^ command,
int commandType,
int commandTimeout
)
abstract DeriveParameters :
command:string *
commandType:int *
commandTimeout:int -> DataParameter[]
override DeriveParameters :
command:string *
commandType:int *
commandTimeout:int -> DataParameter[]
public function DeriveParameters(
command : String,
commandType : int,
commandTimeout : int
) : DataParameter[]
パラメーター
- command
型 : System.String
パラメーターを取得するデータ ソース固有のコマンド。
- commandType
型 : System.Int32
指定する名前付きコマンドのコマンドの型 command のパラメーターの内容を解釈する方法を示します。
- commandTimeout
型 : System.Int32
パラメーターの派生をキャンセルし、呼び出し元に戻す前にクライアントをブロック時間 (秒)。は、ゼロ値は無限タイムアウトを示しています; 値 -1 は、プロバイダーの既定値を表示します。
戻り値
型 : array<Microsoft.VisualStudio.Data.DataParameter[]
DataParameter のオブジェクトの配列を、コマンドから派生したパラメーターを表すそれぞれ返します。
解説
一度派生パラメーター オブジェクトのインスタンスがクライアント所有し、これらを必要に応じて値を変更して取得します; クライアントは Execute か ExecuteWithoutResults の呼び出しに、これらの値を渡します。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。