AppInfo クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
アプリケーションに関する情報 (名前、ロゴ、パッケージ情報、ID など) を提供します。
public ref class AppInfo sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppInfo final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppInfo
Public NotInheritable Class AppInfo
- 継承
- 属性
Windows の要件
| 要件 | 説明 |
|---|---|
| デバイス ファミリ |
Windows 10 (10.0.10240.0 で導入)
|
| API contract |
Windows.Foundation.UniversalApiContract (v1.0 で導入)
|
注釈
バージョン履歴
| Windows のバージョン | SDK バージョン | 追加された値 |
|---|---|---|
| 2004 | 19041 | Current |
| 2004 | 19041 | GetFromAppUserModelId |
| 2004 | 19041 | GetFromAppUserModelIdForUser |
| 2004 | 19041 | パッケージ |
プロパティ
| 名前 | 説明 |
|---|---|
| AppUserModelId |
アプリを一意に識別する識別子。 |
| Current |
現在実行中のプロセスに対応する AppInfo オブジェクトを取得します。 |
| DisplayInfo |
アプリケーションを説明する情報を取得します。 |
| ExecutionContext |
指定したアプリの実行コンテキストを表す列挙型。 値には、Unknown、Host、または Guest のいずれかを指定できます。 デスクトップ デバイスでは、ホストになります。 |
| Id |
アプリ識別子を取得します。 |
| Package |
呼び出し元の AppInfo オブジェクトの完全な Package オブジェクトを取得します。 |
| PackageFamilyName |
アプリのパッケージを一意に識別する識別子。 |
| SupportedFileExtensions |
アプリケーションが処理するために登録されているファイル拡張子の一覧。 アプリは、アプリケーション マニフェスト ファイル内の の拡張機能 |
メソッド
| 名前 | 説明 |
|---|---|
| GetFromAppUserModelId(String) |
AppUserModelId (AUMID) に関連付けられている AppInfo オブジェクトを取得します。 |
| GetFromAppUserModelIdForUser(User, String) |
指定した User および AppUserModelId (AUMID) に関連付けられている AppInfo オブジェクトを取得します。 |