SqlCeParameter.Value Property
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.
Gets or sets the value of the parameter.
[Visual Basic] Public Overridable Property Value As Object Implements _ IDataParameter.Value [C#] public virtual object Value {get; set;} [C++] public: __property virtual Object* get_Value(); public: __property virtual void set_Value(Object*); [JScript] public function get Value() : Object; public function set Value(Object);
Property Value
An Object that is the value of the parameter. The default value is null.
Implements
Remarks
The value is bound to the SqlCeCommand that is sent to the server.
When sending a null parameter value to the server, the user must specify DBNull, not null. The null value in the system is an empty object that has no value. 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 SqlDbType properties can be inferred by setting the Value.
The Value property is overwritten by Update.
Requirements
Platforms: .NET Compact Framework
.NET Framework Security:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
See Also
SqlCeParameter Class | SqlCeParameter Members | System.Data.SqlServerCe Namespace | SqlDbType | DbType
Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.