PersistenceIOParticipant.BeginOnSave 方法

定义

开始一个异步操作,以便连同正在保留到实例存储中的实例一起保存附加状态。

protected:
 virtual IAsyncResult ^ BeginOnSave(System::Collections::Generic::IDictionary<System::Xml::Linq::XName ^, System::Object ^> ^ readWriteValues, System::Collections::Generic::IDictionary<System::Xml::Linq::XName ^, System::Object ^> ^ writeOnlyValues, TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
protected virtual IAsyncResult BeginOnSave (System.Collections.Generic.IDictionary<System.Xml.Linq.XName,object> readWriteValues, System.Collections.Generic.IDictionary<System.Xml.Linq.XName,object> writeOnlyValues, TimeSpan timeout, AsyncCallback callback, object state);
abstract member BeginOnSave : System.Collections.Generic.IDictionary<System.Xml.Linq.XName, obj> * System.Collections.Generic.IDictionary<System.Xml.Linq.XName, obj> * TimeSpan * AsyncCallback * obj -> IAsyncResult
override this.BeginOnSave : System.Collections.Generic.IDictionary<System.Xml.Linq.XName, obj> * System.Collections.Generic.IDictionary<System.Xml.Linq.XName, obj> * TimeSpan * AsyncCallback * obj -> IAsyncResult
Protected Overridable Function BeginOnSave (readWriteValues As IDictionary(Of XName, Object), writeOnlyValues As IDictionary(Of XName, Object), timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

参数

readWriteValues
IDictionary<XName,Object>

由 CollectValues 和 MapValues 阶段中收集的读/写值组成的字典。

writeOnlyValues
IDictionary<XName,Object>

由 CollectValues 和 MapValues 阶段中收集的只写值组成的字典。

timeout
TimeSpan

时间跨度,操作应在该时间跨度内完成而不超时。

callback
AsyncCallback

可接收异步操作完成通知的异步回调接收委托。

state
Object

与异步操作关联的状态信息。

返回

异步操作的状态。

适用于