OleDbParameter.SourceVersion Właściwość

Definicja

Pobiera lub ustawia wartość DataRowVersion do użycia podczas ładowania Value.

public:
 virtual property System::Data::DataRowVersion SourceVersion { System::Data::DataRowVersion get(); void set(System::Data::DataRowVersion value); };
public:
 property System::Data::DataRowVersion SourceVersion { System::Data::DataRowVersion get(); void set(System::Data::DataRowVersion value); };
public override System.Data.DataRowVersion SourceVersion { get; set; }
[System.Data.DataSysDescription("DataParameter_SourceVersion")]
public System.Data.DataRowVersion SourceVersion { get; set; }
member this.SourceVersion : System.Data.DataRowVersion with get, set
[<System.Data.DataSysDescription("DataParameter_SourceVersion")>]
member this.SourceVersion : System.Data.DataRowVersion with get, set
Public Overrides Property SourceVersion As DataRowVersion
Public Property SourceVersion As DataRowVersion

Wartość właściwości

Jedna z DataRowVersion wartości. Wartość domyślna to Current.

Implementuje

Atrybuty

Wyjątki

Właściwość nie została ustawiona na jedną z DataRowVersion wartości.

Przykłady

Poniższy przykład tworzy element OleDbParameter i ustawia niektóre jego właściwości.

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;  
 }  

Uwagi

Używany przez UpdateCommand operację aktualizacji w celu określenia, czy wartość parametru jest ustawiona na Current , czy Original. Umożliwia to aktualizowanie kluczy podstawowych. Ta właściwość jest ustawiona na wersję DataRow używaną przez Item[] właściwość lub GetChildRows metodę DataRow obiektu.

Dotyczy

Zobacz też