AppExtension AppExtension AppExtension AppExtension Class

Definition

Provides information about an application extension.

public : sealed class AppExtension : IAppExtensionpublic sealed class AppExtension : IAppExtensionPublic NotInheritable Class AppExtension Implements IAppExtension// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Properties

AppInfo AppInfo AppInfo AppInfo

Provides information such as the app extension's name, logo, package information, and app identifier, that the host app may choose to show to the user.

public : AppInfo AppInfo { get; }public AppInfo AppInfo { get; }Public ReadOnly Property AppInfo As AppInfo// You can use this property in JavaScript.
Value
AppInfo AppInfo AppInfo AppInfo

The application information.

Description Description Description Description

Provides the description of this app extension.

public : PlatForm::String Description { get; }public string Description { get; }Public ReadOnly Property Description As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

Description of the extension.

DisplayName DisplayName DisplayName DisplayName

Provides the display name of this extension.

public : PlatForm::String DisplayName { get; }public string DisplayName { get; }Public ReadOnly Property DisplayName As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The display name.

Id Id Id Id

The extension's instance identifier.

public : PlatForm::String Id { get; }public string Id { get; }Public ReadOnly Property Id As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

Instance identifier.

Remarks

There may be multiple extensions within an extension group. The identifier distinguishes them from each other. For example, a category may contain both a test and shipping extension in the same category and they would have different identifiers so you can tell them apart.

Package Package Package Package

Gets the package information for the app extension.

public : Package Package { get; }public Package Package { get; }Public ReadOnly Property Package As Package// You can use this property in JavaScript.
Value
Package Package Package Package

The package information which includes the package description, logo, display name, and so on.

Methods

GetExtensionPropertiesAsync() GetExtensionPropertiesAsync() GetExtensionPropertiesAsync() GetExtensionPropertiesAsync()

Used by the extension to specify any extra information that the hosting app can query.

public : IAsyncOperation<IPropertySet> GetExtensionPropertiesAsync()public IAsyncOperation<IPropertySet> GetExtensionPropertiesAsync()Public Function GetExtensionPropertiesAsync() As IAsyncOperation( Of IPropertySet )// You can use this method in JavaScript.
Returns

Remarks

Examples of extra information that could be returned from this property includes authorship information, capability information, and so on.

GetPublicFolderAsync() GetPublicFolderAsync() GetPublicFolderAsync() GetPublicFolderAsync()

Gets the readable subfolder in the extension's isolated storage.

public : IAsyncOperation<StorageFolder> GetPublicFolderAsync()public IAsyncOperation<StorageFolder> GetPublicFolderAsync()Public Function GetPublicFolderAsync() As IAsyncOperation( Of StorageFolder )// You can use this method in JavaScript.
Returns

Remarks

An extension can provide a subfolder containing files that hosting apps can read from. Hosts cannot write to the folder.