Partager via


DataCommand.CreateParameter Method

Creates a parameter object that can be passed into the DeriveSchema, Execute or ExecuteWithoutResultsmethods on a DataCommandclass instance.

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

Syntax

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

Return Value

Type: Microsoft.VisualStudio.Data.DataParameter
Returns a new DataParameter object instance.

Exceptions

Exception Condition
NotSupportedException

The provider does not support this method.

.NET Framework Security

See Also

Reference

DataCommand Class

Microsoft.VisualStudio.Data Namespace

DeriveParameters