PackageManager.QueryContentProviders(String, Int32, PackageInfoFlags) Method

Definition

Retrieve content provider information.

[Android.Runtime.Register("queryContentProviders", "(Ljava/lang/String;II)Ljava/util/List;", "GetQueryContentProviders_Ljava_lang_String_IIHandler")]
public abstract System.Collections.Generic.IList<Android.Content.PM.ProviderInfo> QueryContentProviders (string? processName, int uid, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("queryContentProviders", "(Ljava/lang/String;II)Ljava/util/List;", "GetQueryContentProviders_Ljava_lang_String_IIHandler")>]
abstract member QueryContentProviders : string * int * Android.Content.PM.PackageInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ProviderInfo>

Parameters

processName
String

If non-null, limits the returned providers to only those that are hosted by the given process. If null, all content providers are returned.

uid
Int32

If <var>processName</var> is non-null, this is the required uid owning the requested content providers.

flags
PackageInfoFlags

Additional option flags to modify the data returned.

Returns

IList<ProviderInfo>

A list of ProviderInfo objects containing one entry for each provider either matching <var>processName</var> or, if <var>processName</var> is null, all known content providers. <em>If there are no matching providers, null is returned.</em>

Attributes

Remarks

Java documentation for android.content.pm.PackageManager.queryContentProviders(java.lang.String, int, 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