Chili.Opf3 Send comments on this topic.
CreateParameter Method
See Also 
Chili.Opf3.Storages Namespace > SqlCommandBuilderBase Class : CreateParameter Method




storage
The storage class the parameter is created for.
index
The index of the parameter in the current query.
value
The value of the parameter.
type
The type of the parameter.
name
The name of the parameter. Returned by this routine.
Creates a parameter for the storage.

Syntax

Visual Basic (Declaration) 
Protected Overridable Function CreateParameter( _
   ByVal storage As SqlStorageBase, _
   ByVal index As Integer, _
   ByVal value As Object, _
   ByVal type As Type, _
   ByRef name As String _
) As IDataParameter
Visual Basic (Usage)Copy Code
Dim instance As SqlCommandBuilderBase
Dim storage As SqlStorageBase
Dim index As Integer
Dim value As Object
Dim type As Type
Dim name As String
Dim value As IDataParameter
 
value = instance.CreateParameter(storage, index, value, type, name)
C# 
protected virtual IDataParameter CreateParameter( 
   SqlStorageBase storage,
   int index,
   object value,
   Type type,
   out string name
)
Managed Extensions for C++ 
protected: virtual IDataParameter CreateParameter( 
   SqlStorageBase* storage,
   int index,
   Object* value,
   Type* type,
   [PARAMFLAG::Out] string* name
) 
C++/CLI 
protected:
virtual IDataParameter CreateParameter( 
   SqlStorageBase^ storage,
   int index,
   Object^ value,
   Type^ type,
   [Out] String^ name
) 

Parameters

storage
The storage class the parameter is created for.
index
The index of the parameter in the current query.
value
The value of the parameter.
type
The type of the parameter.
name
The name of the parameter. Returned by this routine.

Requirements

Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family

See Also