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

ITable.Attach Method (Object, Boolean)

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

Attaches all entities of a collection to the DataContext in either a modified or unmodified state.

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

void Attach(
	Object entity,
	bool asModified
)

Parameters

entity
Type: System.Object
The collection of entities.
asModified
Type: System.Boolean
true to attach the entities as modified.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft