다음을 통해 공유


MockPackageManager.GetProviderInfo(ComponentName, PackageInfoFlags) Method

Definition

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

[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.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("getProviderInfo", "(Landroid/content/ComponentName;I)Landroid/content/pm/ProviderInfo;", "GetGetProviderInfo_Landroid_content_ComponentName_IHandler")>]
override this.GetProviderInfo : Android.Content.ComponentName * Android.Content.PM.PackageInfoFlags -> Android.Content.PM.ProviderInfo

Parameters

className
ComponentName

The full component name (i.e. com.google.providers.media/com.google.providers.media.MediaProvider) of a ContentProvider class.

flags
PackageInfoFlags

Additional option flags. Use any combination of MetaData, SharedLibraryFiles, to modify the data returned.

Returns

Attributes

Exceptions

Remarks

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