LoadOption Enumeration
TOC
Collapse the table of content
Expand the table of content

LoadOption Enumeration

 

Controls how the values from the data source will be applied to existing rows when using the Load or Load method.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

public enum LoadOption

Member nameDescription
OverwriteChanges

The incoming values for this row will be written to both the current value and the original value versions of the data for each column.

PreserveChanges

The incoming values for this row will be written to the original value version of each column. The current version of the data in each column will not be changed. This is the default.

Upsert

The incoming values for this row will be written to the current version of each column. The original version of each column's data will not be changed.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft