DataServiceContext.AttachTo Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Include Protected Members
Include Inherited Members
Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members
Notifies the DataServiceContext to start tracking the specified resource and supplies the location of the resource within the specified resource set.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
Overload List
Name | Description | |
---|---|---|
AttachTo(String, Object) | Notifies the DataServiceContext to start tracking the specified resource and supplies the location of the resource within the specified resource set. | |
AttachTo(String, Object, String) | Notifies the DataServiceContext to start tracking the specified resource and supplies the location of the resource within the specified resource set. |
Top
Remarks
If the entity is part of an object graph, this operation does not traverse the graph to add related objects. It is a shallow operation.
The method does not validate whether the specified entity set exists in the data service associated with the DataServiceContext.