Share via


PackageId 類別

定義

提供套件識別資訊,例如名稱、版本和發行者。

public ref class PackageId sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PackageId final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PackageId
Public NotInheritable Class PackageId
繼承
Object Platform::Object IInspectable PackageId
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

使用 Package.Current 屬性取得目前應用程式的套件。

屬性

Architecture

取得建立封裝的處理器架構。

Author

僅Windows Phone。 取得指定之應用程式封裝的 Author 屬性值。

FamilyName

取得封裝的系列名稱。

FullName

取得封裝的完整名稱。

Name

取得封裝的名稱。

ProductId

僅Windows Phone。 取得與此 XAP 應用程式封裝相關聯的 ProductID 屬性值。

Publisher

取得封裝的發行者。

PublisherId

取得封裝的發行者識別碼。

ResourceId

取得封裝的資源識別碼。

Version

取得套件版本資訊。

適用於

另請參閱