Value Property


public Object Value { get; set; }


Type: System.Object

Gets or sets the value of the parameter. If the DbType or RdmType has not already be specified, setting the Value will cause the type to be inferred. If the type has been established, setting the Value will cause the Value to be converted to the specified type (if necessary).


Exception Condition
ArgumentNullException The specified value is null.
ArgumentException The value is DBNull.Value but the parameter is not nullable
ArgumentException The type of value is not an anticipated type


For more information, reference MSDN documentation for: System.Data.Common.DbParameter.Value