Share via


PackageManager.GetProviderInfo Method

Definition

Overloads

GetProviderInfo(ComponentName, PackageInfoFlags)

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

GetProviderInfo(ComponentName, PackageManager+ComponentInfoFlags)

GetProviderInfo(ComponentName, PackageInfoFlags)

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

Parameters

component
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 to modify the data returned.

Returns

A ProviderInfo object containing information about the provider.

Attributes

Exceptions

Remarks

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

Use #getProviderInfo(ComponentName, ComponentInfoFlags) when long flags are needed.

Java documentation for android.content.pm.PackageManager.getProviderInfo(android.content.ComponentName, int).

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

GetProviderInfo(ComponentName, PackageManager+ComponentInfoFlags)

[Android.Runtime.Register("getProviderInfo", "(Landroid/content/ComponentName;Landroid/content/pm/PackageManager$ComponentInfoFlags;)Landroid/content/pm/ProviderInfo;", "GetGetProviderInfo_Landroid_content_ComponentName_Landroid_content_pm_PackageManager_ComponentInfoFlags_Handler", ApiSince=33)]
public virtual Android.Content.PM.ProviderInfo GetProviderInfo (Android.Content.ComponentName component, Android.Content.PM.PackageManager.ComponentInfoFlags flags);
[<Android.Runtime.Register("getProviderInfo", "(Landroid/content/ComponentName;Landroid/content/pm/PackageManager$ComponentInfoFlags;)Landroid/content/pm/ProviderInfo;", "GetGetProviderInfo_Landroid_content_ComponentName_Landroid_content_pm_PackageManager_ComponentInfoFlags_Handler", ApiSince=33)>]
abstract member GetProviderInfo : Android.Content.ComponentName * Android.Content.PM.PackageManager.ComponentInfoFlags -> Android.Content.PM.ProviderInfo
override this.GetProviderInfo : Android.Content.ComponentName * Android.Content.PM.PackageManager.ComponentInfoFlags -> Android.Content.PM.ProviderInfo

Parameters

component
ComponentName

Returns

Attributes

Applies to