Partager via


DataCommand.CreateParameter Method

Creates a parameter object that can be passed into the DeriveSchema, DeriveSchema, Execute, or ExecuteWithoutResults methods on a DataCommand instance.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public Overridable Function CreateParameter As IVsDataParameter
public virtual IVsDataParameter CreateParameter()
public:
virtual IVsDataParameter^ CreateParameter()
abstract CreateParameter : unit -> IVsDataParameter  
override CreateParameter : unit -> IVsDataParameter
public function CreateParameter() : IVsDataParameter

Return Value

Type: Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter
A new IVsDataParameter object instance.

Implements

IVsDataCommand.CreateParameter()

Exceptions

Exception Condition
NotSupportedException

The provider does not support this method.

.NET Framework Security

See Also

Reference

DataCommand Class

Microsoft.VisualStudio.Data.Framework Namespace

DeriveParameters