PersistenceProvider.EndCreate(IAsyncResult) Método
Definição
Quando implementado em uma classe derivada, representa o término da fase Create.When implemented in a derived class, represents the end of the Create phase. A fase Create ocorre quando os registros de estado de serviço são criados pela primeira vez no repositório de persistência.The Create phase occurs when service state records are first created in the persistence store.
public:
abstract System::Object ^ EndCreate(IAsyncResult ^ result);
public abstract object EndCreate (IAsyncResult result);
abstract member EndCreate : IAsyncResult -> obj
Public MustOverride Function EndCreate (result As IAsyncResult) As Object
Parâmetros
- result
- IAsyncResult
Uma referência ao resultado da operação.A reference to the result of the operation.
Retornos
O token de instância correspondente ao estado recém-salvo.The instance token corresponding to the state just saved. Isso pode ser passado para LoadIfChanged(TimeSpan, Object, Object) para determinar se o estado no repositório de persistência é diferente do estado de quando Create foi chamado.This can be passed to LoadIfChanged(TimeSpan, Object, Object) to determine whether the state in the persistence store differs from the state when Create was called.
Exemplos
O código a seguir demonstra como implementar o EndCreate método.The following code demonstrates how to implement the EndCreate method.
public override object EndCreate(IAsyncResult result)
{
base.ThrowIfDisposedOrNotOpen();
this.factory.EndCreate(result);
return null;
}