Share via


SqlCeParameter.SourceVersion Property

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Gets or sets the DataRowVersion to use when loading Value.

  [Visual Basic]
  Public Overridable Property SourceVersion As DataRowVersion  _
   Implements IDataParameter.SourceVersion
[C#]
public virtual DataRowVersion SourceVersion {get; set;}
[C++]
public: __property virtual DataRowVersion get_SourceVersion();
public: __property virtual void set_SourceVersion(DataRowVersion);
[JScript]
public function get SourceVersion() : DataRowVersion;
public function set SourceVersion(DataRowVersion);

Property Value

One of the DataRowVersion values. The default is Current.

Implements

IDataParameter.SourceVersion

Exceptions

Exception Type Condition
ArgumentException The property was 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 allows primary keys to be updated. This property is set to the version of the DataRow used by the get_Item property, or the GetChildRows method of the DataRow object.

Requirements

Platforms: .NET Compact Framework

.NET Framework Security:

See Also

SqlCeParameter Class | SqlCeParameter Members | System.Data.SqlServerCe Namespace

Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.

Send comments on this topic.

© Microsoft Corporation. All rights reserved.