GenericDocument.Builder Constructors
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.
Overloads
GenericDocument.Builder(IntPtr, JniHandleOwnership) | |
GenericDocument.Builder(String, String, String) |
Creates a new |
GenericDocument.Builder(IntPtr, JniHandleOwnership)
protected Builder (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.AppSearch.GenericDocument.Builder : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.AppSearch.GenericDocument.Builder
Parameters
- javaReference
-
IntPtr
nativeint
- transfer
- JniHandleOwnership
Applies to
GenericDocument.Builder(String, String, String)
Creates a new GenericDocument.Builder
.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=31)]
public Builder (string namespace, string id, string schemaType);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=31)>]
new Android.App.AppSearch.GenericDocument.Builder : string * string * string -> Android.App.AppSearch.GenericDocument.Builder
Parameters
- namespace
- String
the namespace to set for the GenericDocument
.
- id
- String
the unique identifier for the GenericDocument
in its namespace.
- schemaType
- String
the AppSearchSchema
type of the GenericDocument
. The
provided schemaType
must be defined using AppSearchSession#setSchema
prior to inserting a document of this schemaType
into the AppSearch index
using AppSearchSession#put
. Otherwise, the document will be rejected by
AppSearchSession#put
with result code AppSearchResult#RESULT_NOT_FOUND
.
- Attributes
Remarks
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.