AppSearchBatchResult.Builder.SetFailure(Object, Int32, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Records a result with the specified code and message for a key.
[Android.Runtime.Register("setFailure", "(Ljava/lang/Object;ILjava/lang/String;)Landroid/app/appsearch/AppSearchBatchResult$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.AppSearchBatchResult.Builder SetFailure(Java.Lang.Object key, int resultCode, string? errorMessage);
[<Android.Runtime.Register("setFailure", "(Ljava/lang/Object;ILjava/lang/String;)Landroid/app/appsearch/AppSearchBatchResult$Builder;", "", ApiSince=31)>]
member this.SetFailure : Java.Lang.Object * int * string -> Android.App.AppSearch.AppSearchBatchResult.Builder
Parameters
- key
- Object
The key under which to record the result.
- resultCode
- Int32
The result code to store.
- errorMessage
- String
The message to store, or null for no message.
Returns
This builder instance.
- Attributes
Remarks
A previous result for the key is replaced. If the code is RESULT_OK, the result is recorded as a success; otherwise, it is recorded as a failure.