Android.Test.Mock.MockContentResolver.AddProvider Method
Adds access to a provider based on its authority

Syntax

[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)

Parameters

name
The authority name associated with the provider.
provider
An instance of Android.Content.ContentProvider or one of its subclasses, or null.

Remarks

Adds access to a provider based on its authority

[Android Documentation]

Requirements

Namespace: Android.Test.Mock
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1