CursorLoader 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| CursorLoader(Context) |
创建空未指定的 CursorLoader。 |
| CursorLoader(IntPtr, JniHandleOwnership) |
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。 |
| CursorLoader(Context, Uri, String[], String, String[], String) |
创建完全指定的 CursorLoader。 |
CursorLoader(Context)
创建空未指定的 CursorLoader。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public CursorLoader(Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Content.CursorLoader : Android.Content.Context -> Android.Content.CursorLoader
参数
- context
- Context
要用于操作的上下文。
- 特性
注解
创建空未指定的 CursorLoader。 必须使用对等的#setUri(Uri)#setSelection(String)调用来执行此操作,以指定要执行的查询。
Java文档android.content.CursorLoader.CursorLoader(android.content.Context)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
CursorLoader(IntPtr, JniHandleOwnership)
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。
protected CursorLoader(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Content.CursorLoader : nativeint * Android.Runtime.JniHandleOwnership -> Android.Content.CursorLoader
参数
- transfer
- JniHandleOwnership
指示 JniHandleOwnership如何处理 javaReference
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
CursorLoader(Context, Uri, String[], String, String[], String)
创建完全指定的 CursorLoader。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V", "")]
public CursorLoader(Android.Content.Context? context, Android.Net.Uri? uri, string[]? projection, string? selection, string[]? selectionArgs, string? sortOrder);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V", "")>]
new Android.Content.CursorLoader : Android.Content.Context * Android.Net.Uri * string[] * string * string[] * string -> Android.Content.CursorLoader
参数
- context
- Context
要用于操作的上下文。
- uri
- Uri
与操作关联的内容 URI。
- projection
- String[]
要包含在查询结果中的列。
- selection
- String
SQL 选择子句。
- selectionArgs
- String[]
替换所选子句中占位符的值。
- sortOrder
- String
查询的排序顺序。
- 特性
注解
创建完全指定的 CursorLoader。 有关参数含义的文档,请参阅 ContentResolver#query(Uri, String[], String, String[], String) ContentResolver.query() 相关文档。 这些将 as-is 传递给该调用。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。