Поделиться через


ITable.Attach Method (Object, Boolean)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Sub Attach ( _
    entity As Object, _
    asModified As Boolean _
)
void Attach(
    Object entity,
    bool asModified
)

Parameters

  • asModified
    Type: System.Boolean
    true to attach the entities as modified.

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.