SliceProvider.Query 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.
Overloads
| Name | Description |
|---|---|
| Query(Uri, String[], Bundle, CancellationSignal) |
Obsolete.
Returns |
| Query(Uri, String[], String, String[], String) |
Obsolete.
Returns |
| Query(Uri, String[], String, String[], String, CancellationSignal) |
Obsolete.
Returns |
Query(Uri, String[], Bundle, CancellationSignal)
Caution
deprecated
Returns null without querying data.
[Android.Runtime.Register("query", "(Landroid/net/Uri;[Ljava/lang/String;Landroid/os/Bundle;Landroid/os/CancellationSignal;)Landroid/database/Cursor;", "", ApiSince=28)]
[System.Obsolete("deprecated")]
public override sealed Android.Database.ICursor? Query(Android.Net.Uri? uri, string[]? projection, Android.OS.Bundle? queryArgs, Android.OS.CancellationSignal? cancellationSignal);
[<Android.Runtime.Register("query", "(Landroid/net/Uri;[Ljava/lang/String;Landroid/os/Bundle;Landroid/os/CancellationSignal;)Landroid/database/Cursor;", "", ApiSince=28)>]
[<System.Obsolete("deprecated")>]
override this.Query : Android.Net.Uri * string[] * Android.OS.Bundle * Android.OS.CancellationSignal -> Android.Database.ICursor
Parameters
- uri
- Uri
The URI argument. This override does not use it to query data.
- projection
- String[]
The column names argument. This override ignores it.
- queryArgs
- Bundle
The query arguments bundle. This override ignores it.
- cancellationSignal
- CancellationSignal
The cancellation signal argument. This override does not check it.
Returns
Always null; no cursor is created.
- Attributes
Remarks
This sealed override does not support cursor queries. It ignores the query arguments and cancellation signal. To obtain slice content, use SliceManager to bind a slice instead.
Android source for the bundle-based SliceProvider.query overload.
Applies to
Query(Uri, String[], String, String[], String)
Caution
deprecated
Returns null without querying data.
[Android.Runtime.Register("query", "(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;", "", ApiSince=28)]
[System.Obsolete("deprecated")]
public override sealed Android.Database.ICursor? Query(Android.Net.Uri? uri, string[]? projection, string? selection, string[]? selectionArgs, string? sortOrder);
[<Android.Runtime.Register("query", "(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;", "", ApiSince=28)>]
[<System.Obsolete("deprecated")>]
override this.Query : Android.Net.Uri * string[] * string * string[] * string -> Android.Database.ICursor
Parameters
- uri
- Uri
The URI argument. This override does not use it to query data.
- projection
- String[]
The column names argument. This override ignores it.
- selection
- String
The selection argument. This override ignores it.
- selectionArgs
- String[]
The selection arguments. This override ignores them.
- sortOrder
- String
The sort order argument. This override ignores it.
Returns
Always null; no cursor is created.
- Attributes
Remarks
This sealed override does not support cursor queries. It does not apply the projection, selection, or sort order. To obtain slice content, use SliceManager to bind a slice instead.
Android source for the five-argument SliceProvider.query overload.
Applies to
Query(Uri, String[], String, String[], String, CancellationSignal)
Caution
deprecated
Returns null without querying data.
[Android.Runtime.Register("query", "(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Landroid/os/CancellationSignal;)Landroid/database/Cursor;", "", ApiSince=28)]
[System.Obsolete("deprecated")]
public override sealed Android.Database.ICursor? Query(Android.Net.Uri? uri, string[]? projection, string? selection, string[]? selectionArgs, string? sortOrder, Android.OS.CancellationSignal? cancellationSignal);
[<Android.Runtime.Register("query", "(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Landroid/os/CancellationSignal;)Landroid/database/Cursor;", "", ApiSince=28)>]
[<System.Obsolete("deprecated")>]
override this.Query : Android.Net.Uri * string[] * string * string[] * string * Android.OS.CancellationSignal -> Android.Database.ICursor
Parameters
- uri
- Uri
The URI argument. This override does not use it to query data.
- projection
- String[]
The column names argument. This override ignores it.
- selection
- String
The selection argument. This override ignores it.
- selectionArgs
- String[]
The selection arguments. This override ignores them.
- sortOrder
- String
The sort order argument. This override ignores it.
- cancellationSignal
- CancellationSignal
The cancellation signal argument. This override does not check it.
Returns
Always null; no cursor is created.
- Attributes
Remarks
This sealed override does not support cursor queries. It ignores the query arguments and cancellation signal. To obtain slice content, use SliceManager to bind a slice instead.
Android source for the six-argument SliceProvider.query overload.