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
'Déclaration
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
- 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.