共用方式為


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

傳回

屬性

適用於