docs.unity3d.com
    目次を表示する/隠す

    Method Complete

    Complete(TObject, Boolean, String)

    Complete the operation and invoke events.

    Declaration
    public void Complete(TObject result, bool success, string errorMsg)
    Parameters
    Type Name Description
    TObject result

    The result object for the operation.

    Boolean success

    True if successful or if the operation failed silently.

    String errorMsg

    The error message if the operation has failed.

    Remarks

    An operation is considered to have failed silently if success is true and if errorMsg isn't null or empty. The exception handler will be called in cases of silent failures. Any failed operations will call Release on any dependencies that succeeded.

    Complete(TObject, Boolean, String, Boolean)

    Complete the operation and invoke events.

    Declaration
    public void Complete(TObject result, bool success, string errorMsg, bool releaseDependenciesOnFailure)
    Parameters
    Type Name Description
    TObject result

    The result object for the operation.

    Boolean success

    True if successful or if the operation failed silently.

    String errorMsg

    The error message if the operation has failed.

    Boolean releaseDependenciesOnFailure

    When true, failed operations will release any dependencies that succeeded.

    Remarks

    An operation is considered to have failed silently if success is true and if errorMsg isn't null or empty. The exception handler will be called in cases of silent failures.

    Complete(TObject, Boolean, Exception, Boolean)

    Complete the operation and invoke events.

    Declaration
    public void Complete(TObject result, bool success, Exception exception, bool releaseDependenciesOnFailure = true)
    Parameters
    Type Name Description
    TObject result

    The result object for the operation.

    Boolean success

    True if successful or if the operation failed silently.

    Exception exception

    The exception if the operation has failed.

    Boolean releaseDependenciesOnFailure

    When true, failed operations will release any dependencies that succeeded.

    Remarks

    An operation is considered to have failed silently if success is true and if exception isn't null. The exception handler will be called in cases of silent failures.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)