InstancePersistenceContext.PersistedInstance 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示持久性提供程序已成功将一组实例数据保存到实例存储中。 这会影响初始化实例(如果尚未初始化)。
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>
实例数据作为字典 XName 和 InstanceValue 对象。
注解
当前实例句柄必须绑定到实例以及该实例上的锁。 每个实例数据集完全替换了上一个集。 实例数据集可以为 null - 这与空相同。 保留一组空实例数据会删除现有实例数据集。 (保留一组实例数据对实例元数据没有影响。