次の方法で共有


ContentResolver.AcquireContentProviderClient Method

Definition

Overloads

AcquireContentProviderClient(Uri)

Returns a ContentProviderClient that is associated with the ContentProvider that services the content at uri, starting the provider if necessary.

AcquireContentProviderClient(String)

Returns a ContentProviderClient that is associated with the ContentProvider with the authority of name, starting the provider if necessary.

AcquireContentProviderClient(Uri)

Returns a ContentProviderClient that is associated with the ContentProvider that services the content at uri, starting the provider if necessary.

[Android.Runtime.Register("acquireContentProviderClient", "(Landroid/net/Uri;)Landroid/content/ContentProviderClient;", "")]
public Android.Content.ContentProviderClient? AcquireContentProviderClient (Android.Net.Uri uri);
[<Android.Runtime.Register("acquireContentProviderClient", "(Landroid/net/Uri;)Landroid/content/ContentProviderClient;", "")>]
member this.AcquireContentProviderClient : Android.Net.Uri -> Android.Content.ContentProviderClient

Parameters

uri
Uri

specifies which provider should be acquired

Returns

a ContentProviderClient that is associated with the ContentProvider that services the content at uri or null if there isn't one.

Attributes

Remarks

Returns a ContentProviderClient that is associated with the ContentProvider that services the content at uri, starting the provider if necessary. Returns null if there is no provider associated wih the uri. The caller must indicate that they are done with the provider by calling ContentProviderClient#release which will allow the system to release the provider if it determines that there is no other reason for keeping it active.

Java documentation for android.content.ContentResolver.acquireContentProviderClient(android.net.Uri).

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.

Applies to

AcquireContentProviderClient(String)

Returns a ContentProviderClient that is associated with the ContentProvider with the authority of name, starting the provider if necessary.

[Android.Runtime.Register("acquireContentProviderClient", "(Ljava/lang/String;)Landroid/content/ContentProviderClient;", "")]
public Android.Content.ContentProviderClient? AcquireContentProviderClient (string name);
[<Android.Runtime.Register("acquireContentProviderClient", "(Ljava/lang/String;)Landroid/content/ContentProviderClient;", "")>]
member this.AcquireContentProviderClient : string -> Android.Content.ContentProviderClient

Parameters

name
String

specifies which provider should be acquired

Returns

a ContentProviderClient that is associated with the ContentProvider with the authority of name or null if there isn't one.

Attributes

Remarks

Returns a ContentProviderClient that is associated with the ContentProvider with the authority of name, starting the provider if necessary. Returns null if there is no provider associated wih the uri. The caller must indicate that they are done with the provider by calling ContentProviderClient#release which will allow the system to release the provider if it determines that there is no other reason for keeping it active.

Java documentation for android.content.ContentResolver.acquireContentProviderClient(java.lang.String).

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.

Applies to