Language

AppSearchResult.ErrorMessage Property

Definition

Returns the error message associated with this result.

public string? ErrorMessage { [Android.Runtime.Register("getErrorMessage", "()Ljava/lang/String;", "", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getErrorMessage", "()Ljava/lang/String;", "", ApiSince=31)>]
member this.ErrorMessage : string

Property Value

The stored error message, or null if there is no message.

Attributes

Remarks

Returns the error message associated with this result.

A result created by NewSuccessfulResult has a null message. A result created by NewFailedResult with RESULT_OK reports success and retains the supplied message. The error message may be null even if #isSuccess is false. See the documentation of the particular AppSearchSession call producing this AppSearchResult for what is returned by #getErrorMessage.

Java documentation for android.app.appsearch.AppSearchResult.getErrorMessage().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to