Compensator.EndPrepare Método

Definición

Notifica al compensador de Compensación de Resource Manager (CRM) que ha tenido todos los registros disponibles durante la fase de preparación.

public:
 virtual bool EndPrepare();
public virtual bool EndPrepare();
abstract member EndPrepare : unit -> bool
override this.EndPrepare : unit -> bool
Public Overridable Function EndPrepare () As Boolean

Devoluciones

true, si es correcto; en caso contrario, false.

Ejemplos

En el ejemplo de código siguiente se muestra la implementación de este método.

public:
    virtual bool EndPrepare() override
    {
        // Allow the transaction to proceed onlyif we have received a prepare
        // record.
        if (receivedPrepareRecord)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
public override bool EndPrepare ()
{
    // Allow the transaction to proceed onlyif we have received a prepare record.
    if (receivedPrepareRecord)
    {
        return(true);
    }
    else
    {
        return(false);
    }
}
Public Overrides Function EndPrepare() As Boolean 
    ' Allow the transaction to proceed onlyif we have received a prepare record.
    If receivedPrepareRecord Then
        Return True
    Else
        Return False
    End If

End Function 'EndPrepare

Se aplica a