Android.Test.Mock.MockPackageManager.GetProviderInfo Method
Retrieve all of the information we know about a particular content provider class.

Syntax

[Android.Runtime.Register("getProviderInfo", "(Landroid/content/ComponentName;I)Landroid/content/pm/ProviderInfo;", "GetGetProviderInfo_Landroid_content_ComponentName_IHandler")]
public override Android.Content.PM.ProviderInfo GetProviderInfo (Android.Content.ComponentName className, [Android.Runtime.GeneratedEnum] Android.Content.PM.PackageInfoFlags flags)

Parameters

className
The full component name (i.e. com.google.providers.media/com.google.providers.media.MediaProvider) of a ContentProvider class.
flags
Additional option flags. Use any combination of Android.Content.PM.PackageManager.GET_META_DATA, Android.Content.PM.PackageManager.GET_SHARED_LIBRARY_FILES, to modify the data returned.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
!:NoType:android/content/pm/PackageManager$NameNotFoundException;Href=../../../../reference/android/content/pm/PackageManager.NameNotFoundException.html

Remarks

Retrieve all of the information we know about a particular content provider class.

Throws NoType:android/content/pm/PackageManager$NameNotFoundException;Href=../../../../reference/android/content/pm/PackageManager.NameNotFoundException.html if a provider with the given class name cannot be found on the system.

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