Package.UserExternalLocation 屬性

定義

取得目前封裝之套件資訊清單中指定的每個使用者外部資料夾位置。

public:
 property StorageFolder ^ UserExternalLocation { StorageFolder ^ get(); };
StorageFolder UserExternalLocation();
public StorageFolder UserExternalLocation { get; }
var storageFolder = package.userExternalLocation;
Public ReadOnly Property UserExternalLocation As StorageFolder

屬性值

目前封裝之套件資訊清單中指定的每位使用者外部資料夾位置。

Windows 需求

裝置系列
Windows 10, version 2004 (已於 10.0.19041.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v10.0 引進)

備註

外部資料夾是套件外部的磁片位置,套件資訊清單可以參考應用程式內容。 此屬性會傳回外部資料夾的位置,做為個別使用者安裝之應用程式的 StorageFolder 物件。

當您使用外部位置封裝來授與套件身分識別時,這個屬性是用來使用。 具有外部位置的套件只包含套件資訊清單, (不包含可執行檔或其他應用程式內容) 。 封裝資訊清單會參考封裝外部外部磁片位置中的應用程式內容。

若要設定外部資料夾,請使用下列 PackageManager 方法和相關選項屬性組合之一:

適用於

另請參閱