PackageManager.GetPackageArchiveInfo 方法

定义

重载

GetPackageArchiveInfo(String, PackageInfoFlags)

检索有关包存档文件中定义的应用程序包的总体信息

        Use <code data-dev-comment-type="c">#getPackageArchiveInfo(String, PackageInfoFlags)</code> when long flags are needed.
GetPackageArchiveInfo(String, PackageManager+PackageInfoFlags)

GetPackageArchiveInfo(String, PackageInfoFlags)

检索有关包存档文件中定义的应用程序包的总体信息

        Use <code data-dev-comment-type="c">#getPackageArchiveInfo(String, PackageInfoFlags)</code> when long flags are needed.
[Android.Runtime.Register("getPackageArchiveInfo", "(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;", "GetGetPackageArchiveInfo_Ljava_lang_String_IHandler")]
public virtual Android.Content.PM.PackageInfo? GetPackageArchiveInfo (string archiveFilePath, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("getPackageArchiveInfo", "(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;", "GetGetPackageArchiveInfo_Ljava_lang_String_IHandler")>]
abstract member GetPackageArchiveInfo : string * Android.Content.PM.PackageInfoFlags -> Android.Content.PM.PackageInfo
override this.GetPackageArchiveInfo : string * Android.Content.PM.PackageInfoFlags -> Android.Content.PM.PackageInfo

参数

archiveFilePath
String

存档文件的路径

flags
PackageInfoFlags

用于修改返回的数据的其他选项标志。

返回

一个 PackageInfo 对象,其中包含有关包存档的信息。 如果无法分析包,则返回 null。

属性

注解

检索有关包存档文件中定义的应用程序包的总体信息

需要长标志时使用 #getPackageArchiveInfo(String, PackageInfoFlags)

适用于 . 的 android.content.pm.PackageManager.getPackageArchiveInfo(java.lang.String, int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

GetPackageArchiveInfo(String, PackageManager+PackageInfoFlags)

[Android.Runtime.Register("getPackageArchiveInfo", "(Ljava/lang/String;Landroid/content/pm/PackageManager$PackageInfoFlags;)Landroid/content/pm/PackageInfo;", "GetGetPackageArchiveInfo_Ljava_lang_String_Landroid_content_pm_PackageManager_PackageInfoFlags_Handler", ApiSince=33)]
public virtual Android.Content.PM.PackageInfo? GetPackageArchiveInfo (string archiveFilePath, Android.Content.PM.PackageManager.PackageInfoFlags flags);
[<Android.Runtime.Register("getPackageArchiveInfo", "(Ljava/lang/String;Landroid/content/pm/PackageManager$PackageInfoFlags;)Landroid/content/pm/PackageInfo;", "GetGetPackageArchiveInfo_Ljava_lang_String_Landroid_content_pm_PackageManager_PackageInfoFlags_Handler", ApiSince=33)>]
abstract member GetPackageArchiveInfo : string * Android.Content.PM.PackageManager.PackageInfoFlags -> Android.Content.PM.PackageInfo
override this.GetPackageArchiveInfo : string * Android.Content.PM.PackageManager.PackageInfoFlags -> Android.Content.PM.PackageInfo

参数

archiveFilePath
String

返回

属性

适用于