Adds new parameters to the given DbCommand command from the specified array of IVsDataParameter parameters.
Namespace: Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'宣言
Protected Shared Sub SetParameters ( _
command As DbCommand, _
parameters As IVsDataParameter() _
)
'使用
Dim command As DbCommand
Dim parameters As IVsDataParameter()
AdoDotNetConnectionSupport.SetParameters(command, parameters)
protected static void SetParameters(
DbCommand command,
IVsDataParameter[] parameters
)
protected:
static void SetParameters(
DbCommand^ command,
array<IVsDataParameter^>^ parameters
)
protected static function SetParameters(
command : DbCommand,
parameters : IVsDataParameter[]
)
Parameters
command
Type: System.Data.Common.DbCommandCommand to add parameters to.
parameters
Type: []Array of IVsDataParameter objects for the specified command type.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
AdoDotNetConnectionSupport Class