ContentResolver.AcquireContentProviderClient 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
AcquireContentProviderClient(Uri) |
Returns a |
AcquireContentProviderClient(String) |
Returns a |
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.
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.
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.