Share via


RestrictedAppContainer class

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

Defines a separate app container that is used by apps to render or process untrusted content in a child process.

Syntax

var restrictedAppContainer = Windows.ApplicationModel.Core.RestrictedAppContainer;
public sealed class RestrictedAppContainer
Public NotInheritable Class RestrictedAppContainer
public ref class RestrictedAppContainer sealed 

Members

The RestrictedAppContainer class has these types of members:

  • Methods
  • Properties

Methods

The RestrictedAppContainer class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

Method Description
CreateAsync
DeleteAsync
FindAllAsync
LaunchAsync
Open
TerminateAll

 

Properties

The RestrictedAppContainer class has these properties.

Property Access type Description

Capabilities

Read-only

Name

Read-only

 

Remarks

A RestrictedAppContainer that defines a child app container enables an app to protect itself from malicious data that comes from processing or rendering data from a potentially untrusted source. The child app container uses a process model where the child app container has less capabilities than the main app and its process. As an example scenario, an app might load user-submitted content, data or attachments in a known format, and that data could be accessed from within a child app container to minimize the capabilities that the data could possibly exploit.

There can be multiple child app containers that don't have access to each other. The parent process can enumerate these with FindAllAsync.

LaunchAsync, TerminateAll, Capabilities and Name are instance APIs for a RestrictedAppContainer. CreateAsync, DeleteAsync, FindAllAsync and Open are static APIs of RestrictedAppContainer.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.ApplicationModel.Core Windows::ApplicationModel::Core [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

None supported [Windows Store apps only]

Minimum supported server

None supported [Windows Store apps only]

Minimum supported phone

None supported

Namespace

Windows.ApplicationModel.Core Windows::ApplicationModel::Core [C++]

Metadata

Windows.winmd

Attributes

[Version(0x06030000)]