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!

SQLParameter Constructor (String, SQLDataType)

Initializes a new instance of the SQLParameter class.

[Visual Basic]
Overloads Public Sub New( _
   ByVal parameterName As String, _
   ByVal dbType As SQLDataType _
)
[C#]
public SQLParameter(
   string parameterName,
   SQLDataType dbType
);
[C++]
public: SQLParameter(
   String* parameterName,
   SQLDataType dbType
);
[JScript]
public function SQLParameter(
   parameterName : String,
   dbType : SQLDataType
);

Parameters

parameterName
The name of the column to map.
dbType
One of the SQLDataType values.

Exceptions

Exception Type Condition
ParameterReqFixedSize A fixed Size is required for this Type of parameter.

Remarks

The type and size are inferred from the value.

See Also

SQLParameter Class | SQLParameter Members | System.Data.SQL Namespace | SQLParameter Constructor Overload List