Export (0) Print
Expand All

DbParameter.SourceVersion Property

Note: This property is new in the .NET Framework version 2.0.

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

Namespace: System.Data.Common
Assembly: System.Data (in system.data.dll)

public abstract DataRowVersion SourceVersion { get; set; 
/** @property */
public abstract DataRowVersion get_SourceVersion ()

/** @property */
public abstract void set_SourceVersion (DataRowVersion value)

public abstract function get SourceVersion () : DataRowVersion

public abstract function set SourceVersion (value : DataRowVersion)

Property Value

One of the DataRowVersion values. The default is Current.

Exception typeCondition

ArgumentException

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

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 property, or the GetChildRows method of the DataRow object.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

.NET Compact Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft