Package.MachineExternalPath 屬性

定義

取得目前封裝之封裝資訊清單中指定的全機器外部資料夾位置。

public:
 property Platform::String ^ MachineExternalPath { Platform::String ^ get(); };
winrt::hstring MachineExternalPath();
public string MachineExternalPath { get; }
var string = package.machineExternalPath;
Public ReadOnly Property MachineExternalPath As String

屬性值

String

Platform::String

winrt::hstring

目前封裝之封裝資訊清單中指定的全機器外部資料夾位置。

Windows 需求

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

備註

外部資料夾是套件外部的磁片位置,套件資訊清單可以參考應用程式內容。 此屬性會傳回針對電腦上所有使用者布建之應用程式的外部資料夾位置。

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

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

適用於

另請參閱