AppSearchBatchResult.Builder.SetResult(Object, AppSearchResult) 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 an operation result for a key.
[Android.Runtime.Register("setResult", "(Ljava/lang/Object;Landroid/app/appsearch/AppSearchResult;)Landroid/app/appsearch/AppSearchBatchResult$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.AppSearchBatchResult.Builder SetResult(Java.Lang.Object key, Android.App.AppSearch.AppSearchResult result);
[<Android.Runtime.Register("setResult", "(Ljava/lang/Object;Landroid/app/appsearch/AppSearchResult;)Landroid/app/appsearch/AppSearchBatchResult$Builder;", "", ApiSince=31)>]
member this.SetResult : Java.Lang.Object * Android.App.AppSearch.AppSearchResult -> Android.App.AppSearch.AppSearchBatchResult.Builder
Parameters
- key
- Object
The key under which to record the result.
- result
- AppSearchResult
The successful or failed result to record for the key.
Returns
This builder instance.
- Attributes
Remarks
The result replaces any previous entry for the key. Its success state determines whether the key belongs to the success map or the failure map.