InstancePersistenceContext.PersistedInstance 方法

定义

指示永久性提供程序已经成功将一组实例数据保存到实例存储。 如果尚未初始化实例,则此操作具有初始化的效果。

public:
 void PersistedInstance(System::Collections::Generic::IDictionary<System::Xml::Linq::XName ^, System::Runtime::DurableInstancing::InstanceValue ^> ^ data);
public void PersistedInstance (System.Collections.Generic.IDictionary<System.Xml.Linq.XName,System.Runtime.DurableInstancing.InstanceValue> data);
member this.PersistedInstance : System.Collections.Generic.IDictionary<System.Xml.Linq.XName, System.Runtime.DurableInstancing.InstanceValue> -> unit
Public Sub PersistedInstance (data As IDictionary(Of XName, InstanceValue))

参数

data
IDictionary<XName,InstanceValue>

作为 XNameInstanceValue 对象的字典的实例数据。

注解

当前实例句柄必须绑定到某个实例以及该实例上的锁。 每一组实例数据都会完全替换上一组实例数据。 实例数据集可能为 null - 这与空数据相同。 保存一组为 null 的实例数据会删除现有的实例数据组。 (保存一组实例数据并不会影响实例元数据。)

适用于