Condividi tramite


IEntityInstance.Update Method

Submits the changes made to the External Item.

Namespace:  Microsoft.BusinessData.Runtime
Assembly:  Microsoft.BusinessData (in Microsoft.BusinessData.dll)

Syntax

'Declaration
Sub Update
'Usage
Dim instance As IEntityInstance

instance.Update()
void Update()

Exceptions

Exception Condition
InvalidOperationException

The External Item has been modified on the external system since it was last read or a suitable update method instance could not be found.

Remarks

This method should be called to commit the changes made to the External Item. The changes can be made through the following methods: Associate(EntityInstanceCollection, IAssociation), Disassociate(EntityInstanceCollection, IAssociation), FromXml(String), or the indexer methods (Item[String] or Item[IField].

Examples

Code Snippet: Execute an Updater Method Instance of an External Content Type

See Also

Reference

IEntityInstance Interface

IEntityInstance Members

Microsoft.BusinessData.Runtime Namespace