NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ADOParameters.Add (String, ADODBType, Int32, String)

Adds an ADOParameter to the ADOCommand when given the parameter name, the data type, size, and a source column.

[Visual Basic]
Overloads Public Function Add( _
   ByVal name As String, _
   ByVal dbType As ADODBType, _
   ByVal size As Integer, _
   ByVal sourceColumn As String _
) As ADOParameter
[C#]
public ADOParameter Add(
   string name,
   ADODBType dbType,
   int size,
   string sourceColumn
);
[C++]
public: ADOParameter* Add(
   String* name,
   ADODBType dbType,
   int size,
   String* sourceColumn
);
[JScript]
public function Add(
   name : String,
   dbType : ADODBType,
   size : int,
   sourceColumn : String
) : ADOParameter;

Parameters

name
The name of the parameter.
dbType
One of the ADODBType values.
size
The width of the column.
sourceColumn
The name of the source column.

Return Value

A reference to the new ADOParameter object.

Exceptions

Exception Type Condition
NotAnAdapterParameter The parameter passed was not an ADOParameter.

See Also

ADOParameters Class | ADOParameters Members | System.Data.ADO Namespace | ADOParameters.Add Overload List