MockContentResolver.AddProvider(String, ContentProvider) 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.
Adds access to a provider based on its authority
[Android.Runtime.Register("addProvider", "(Ljava/lang/String;Landroid/content/ContentProvider;)V", "GetAddProvider_Ljava_lang_String_Landroid_content_ContentProvider_Handler")]
public virtual void AddProvider (string? name, Android.Content.ContentProvider? provider);
[<Android.Runtime.Register("addProvider", "(Ljava/lang/String;Landroid/content/ContentProvider;)V", "GetAddProvider_Ljava_lang_String_Landroid_content_ContentProvider_Handler")>]
abstract member AddProvider : string * Android.Content.ContentProvider -> unit
override this.AddProvider : string * Android.Content.ContentProvider -> unit
Parameters
- name
- String
The authority name associated with the provider.
- provider
- ContentProvider
An instance of android.content.ContentProvider
or one of its
subclasses, or null.
- Attributes
Remarks
Adds access to a provider based on its authority
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.