代わりにコマンドを実行し、結果を要求したり、呼び出しの結果を示す整数を返します。
名前空間: Microsoft.VisualStudio.Data.Framework
アセンブリ: Microsoft.VisualStudio.Data.Framework (Microsoft.VisualStudio.Data.Framework.dll 内)
構文
'宣言
Public Function ExecuteWithoutResults ( _
command As String, _
commandType As DataCommandType _
) As Integer
public int ExecuteWithoutResults(
string command,
DataCommandType commandType
)
public:
virtual int ExecuteWithoutResults(
String^ command,
DataCommandType commandType
) sealed
abstract ExecuteWithoutResults :
command:string *
commandType:DataCommandType -> int
override ExecuteWithoutResults :
command:string *
commandType:DataCommandType -> int
public final function ExecuteWithoutResults(
command : String,
commandType : DataCommandType
) : int
パラメーター
- command
型 : System.String
実装するデータ ソースに固有のコマンド。
- commandType
型 : Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType
command のパラメーターの内容を解釈する方法を指定するコマンドの型。コマンドの型は DataCommandType の列挙体からの値、整数変換をから DataCommandType の列挙型にキャストを渡すことができるプロバイダーで定義したカスタム コマンドの型であることができます。
戻り値
型 : System.Int32
DDEX プロバイダー固有の整数のステータス コード。
実装
IVsDataCommand.ExecuteWithoutResults(String, DataCommandType)
例外
| 例外 | 条件 |
|---|---|
| ArgumentNullException | command パラメーターが nullnull 参照 (Visual Basic では Nothing) です。 |
解説
多くの場合、このメソッドの呼び出しの結果に変更された行数を示します。
[!メモ]
例外は、ほかの実行がプロバイダー指定された理由で失敗したことを示します。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。