Attach Method (Object, Object)
Collapse the table of content
Expand the table of content

ITable.Attach Method (Object, Object)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Attaches an entity to the DataContext in either a modified or unmodified state by specifying both the entity and its original state.

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

'Declaration
Sub Attach ( _
	entity As Object, _
	original As Object _
)

Parameters

entity
Type: System.Object
The entity to be attached.
original
Type: System.Object
An instance of the same entity type with data members that contain the original values.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft