IVsDataCommand.Execute Method (String, DataCommandType, [])

When implemented by a class, executes a specified command and returns read-only results.

Namespace:  Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'宣言
Function Execute ( _
    command As String, _
    commandType As DataCommandType, _
    parameters As IVsDataParameter() _
) As IVsDataReader
'使用
Dim instance As IVsDataCommand
Dim command As String
Dim commandType As DataCommandType
Dim parameters As IVsDataParameter()
Dim returnValue As IVsDataReader

returnValue = instance.Execute(command, _
    commandType, parameters)
IVsDataReader Execute(
    string command,
    DataCommandType commandType,
    IVsDataParameter[] parameters
)
IVsDataReader^ Execute(
    String^ command, 
    DataCommandType commandType, 
    array<IVsDataParameter^>^ parameters
)
function Execute(
    command : String, 
    commandType : DataCommandType, 
    parameters : IVsDataParameter[]
) : IVsDataReader

Parameters

  • command
    Type: System.String

    A command to execute that is specific to a data source.

  • parameters
    Type: []

    An array of DataParameter objects for the specified command type. While this is an input parameter, the DDEX provider is still able to set properties on individual out and return value parameters.

Return Value

Type: Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader

An IVsDataReader object, which provides a forward-only, read-only stream from the data source.

Permissions

See Also

Reference

IVsDataCommand Interface

IVsDataCommand Members

Execute Overload

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace