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 - 这与空相同。 保留一组空实例数据会删除现有实例数据集。 (保留一组实例数据对实例元数据没有影响。

适用于