DbParameter.SourceVersion Property

Definition

Gets or sets the DataRowVersion to use when you load Value.

public:
 virtual property System::Data::DataRowVersion SourceVersion { System::Data::DataRowVersion get(); void set(System::Data::DataRowVersion value); };
public:
 abstract property System::Data::DataRowVersion SourceVersion { System::Data::DataRowVersion get(); void set(System::Data::DataRowVersion value); };
public virtual System.Data.DataRowVersion SourceVersion { get; set; }
public abstract System.Data.DataRowVersion SourceVersion { get; set; }
member this.SourceVersion : System.Data.DataRowVersion with get, set
Public Overridable Property SourceVersion As DataRowVersion
Public MustOverride Property SourceVersion As DataRowVersion

Property Value

DataRowVersion

One of the DataRowVersion values. The default is Current.

Implements

Exceptions

The property is not set to one of the DataRowVersion values.

Remarks

Used by UpdateCommand during an Update operation to determine whether the parameter value is set to Current or Original. This lets primary keys be updated. This property is set to the version of the DataRow used by the DataRow.Item property, or the GetChildRows method of the DataRow object.

Applies to

See also