dotConnect Universal Documentation
Devart.Data.Universal Namespace / UniParameter Class / Value Property

In This Topic
    Value Property (UniParameter)
    In This Topic
    Gets or sets the value of the parameter.
    Syntax
    'Declaration
     
    Public Overrides Property Value As Object
    public override object Value {get; set;}

    Property Value

    An System.Object that is the value of the parameter. The default value is null.
    Remarks
    For input parameters, the value is bound to the UniCommand that is sent to the server. For output and return-value parameters, the value is set on completion of the UniCommand and after the UniDataReader is closed.

    When sending a null parameter value to the server, the user must specify System.DBNull, not null. A null value in the system is an empty object that has no value. System.DBNull is used to represent null values.

    If the application specifies the database type, the bound value is converted to that type when the provider sends the data to the server. The provider attempts to convert any type of value if it supports the IConvertible interface. Conversion errors may result if the specified type is not compatible with the value.

    Both the DbType and UniDbType properties can be inferred by setting Value. If applicable, the size, precision and scale will also be inferred from Value.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also