語言

PersistenceProvider.BeginCreate 方法

定義

當在衍生類別中實作時,代表創建階段的開始。 建立階段發生在服務實例記錄首次在持久儲存中建立時。

public:
 abstract IAsyncResult ^ BeginCreate(System::Object ^ instance, TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
public abstract IAsyncResult BeginCreate(object instance, TimeSpan timeout, AsyncCallback callback, object state);
abstract member BeginCreate : obj * TimeSpan * AsyncCallback * obj -> IAsyncResult
Public MustOverride Function BeginCreate (instance As Object, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

參數

instance
Object

實際的實例狀態。

timeout
TimeSpan

持續服務提供者終止此嘗試的時間段。

callback
AsyncCallback

操作完成後要呼叫的方法。

state
Object

一個使用者提供的物件,用來區分此特定非同步操作與其他操作。

傳回

非同步方法呼叫的 BeginCreate(Object, TimeSpan, AsyncCallback, Object) 狀態。

適用於