当实现由选件类,执行命令,可以选择使用参数,但未请求结果,而是返回指示调用的结果整数。
命名空间: Microsoft.VisualStudio.Data.Services.SupportEntities
程序集: Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)
语法
声明
Function ExecuteWithoutResults ( _
command As String, _
commandType As DataCommandType, _
parameters As IVsDataParameter() _
) As Integer
int ExecuteWithoutResults(
string command,
DataCommandType commandType,
IVsDataParameter[] parameters
)
int ExecuteWithoutResults(
String^ command,
DataCommandType commandType,
array<IVsDataParameter^>^ parameters
)
abstract ExecuteWithoutResults :
command:string *
commandType:DataCommandType *
parameters:IVsDataParameter[] -> int
function ExecuteWithoutResults(
command : String,
commandType : DataCommandType,
parameters : IVsDataParameter[]
) : int
参数
command
类型:String特定于数据源的命令执行。
commandType
类型:Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType从表示指示的命令 DataCommandType 枚举的值命令类型,指定如何解释 command 参数的内容。
parameters
类型:array<Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[]数组指定的命令类型的 DataParameter 对象。 尽管这是输入参数时,提供程序可以改为设置的属性和返回值参数。
返回值
类型:Int32
DDEX提供程序特定的整数状态代码。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。