Initializes a ULParameter object with the specified parameter name and value.
Visual Basic Public Sub New( _ ByVal parameterName As String, _ ByVal value As Object _ )
C# public ULParameter( string parameterName, object value );
parameterName The name of the parameter. For unnamed parameters, use an empty string ("") or a null reference (Nothing in Visual Basic) for this value. In UltraLite.NET, parameter names are not used by ULCommand.
value A System.Object that is to be the value of the parameter.
Because of the special treatment of the 0 and 0.0 constants and the way overloaded methods are resolved, it is highly recommended that you explicitly cast constant values to type object when using this constructor.
The following code creates a ULParameter with the value 0 and adds it to a ULCommand called cmd.
' Visual Basic cmd.Parameters.Add( New ULParameter( "", CType( 0, Object ) ) ) // C# cmd.Parameters.Add( new ULParameter( "", (object)0 ) ); |
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |