OleDbParameter.SourceVersion OleDbParameter.SourceVersion OleDbParameter.SourceVersion OleDbParameter.SourceVersion Property


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

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

Property Value

One of the DataRowVersion values. The default is Current.




The following example creates an OleDbParameter and sets some of its properties.

Public Sub CreateOleDbParameter()  
    Dim parameter As New OleDbParameter("Description", OleDbType.VarChar, 88)  
    parameter.SourceColumn = "Description"  
    parameter.SourceVersion = DataRowVersion.Current  
End Sub  
public void CreateOleDbParameter()   
    OleDbParameter parameter = new OleDbParameter("Description", OleDbType.VarChar, 88);  
    parameter.SourceColumn = "Description";  
    parameter.SourceVersion = DataRowVersion.Current;  


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 Item[String, DataRowVersion] property, or the GetChildRows method of the DataRow object.

Applies to

See also