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




index
The index of the parameter.
name
Name of the storage parameter.
value
Value of the storage parameter.
type
The type of the value argument. This information is useful if the value is null.
Creates and populates a storage dependent parameter with data.

Syntax

Visual Basic (Declaration) 
Public Overridable MustOverride Function CreateParameter( _
   ByVal index As Integer, _
   ByRef name As String, _
   ByVal value As Object, _
   ByVal type As Type _
) As IDataParameter
Visual Basic (Usage)Copy Code
Dim instance As SqlStorageBase
Dim index As Integer
Dim name As String
Dim value As Object
Dim type As Type
Dim value As IDataParameter
 
value = instance.CreateParameter(index, name, value, type)
C# 
public virtual abstract IDataParameter CreateParameter( 
   int index,
   ref string name,
   object value,
   Type type
)
Managed Extensions for C++ 
public: virtual abstract IDataParameter CreateParameter( 
   int index,
   ref string* name,
   Object* value,
   Type* type
) 
C++/CLI 
public:
virtual abstract IDataParameter CreateParameter( 
   int index,
   ref String^ name,
   Object^ value,
   Type^ type
) 

Parameters

index
The index of the parameter.
name
Name of the storage parameter.
value
Value of the storage parameter.
type
The type of the value argument. This information is useful if the value is null.

Return Value

The name of the storage parameter should be set to a valid parameter name (one that is supported by the storage) while creating the parameter.

Exceptions

ExceptionDescription
ArgumentNullExceptionName is null.

Requirements

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

See Also