RestrictedAppContainer.CreateAsync | createAsync method
[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.]
Creates a new RestrictedAppContainer object.
Syntax
Windows.ApplicationModel.Core.RestrictedAppContainer.createAsync(name, capabilities).done( /* Your success and error handlers */ );
public static IAsyncOperation<RestrictedAppContainer> CreateAsync(
string name,
RestrictedAppContainerCapabilities capabilities
)
Public Shared Function CreateAsync(
name As String,
capabilities As RestrictedAppContainerCapabilities
) As IAsyncOperation(Of RestrictedAppContainer)
public:
static IAsyncOperation<RestrictedAppContainer>^ CreateAsync(
String^ name,
RestrictedAppContainerCapabilities capabilities
)
Parameters
name
Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]The identifying name for the new RestrictedAppContainer .
capabilities
Type: RestrictedAppContainerCapabilitiesA value that represents the capabilities. This is potentially a flagwise combination of the RestrictedAppContainerCapabilities values.
Return value
Type: IAsyncOperation<RestrictedAppContainer>
When this method completes successfully, contains the new RestrictedAppContainer object.
Remarks
You should check to see whether a RestrictedAppContainer for the profile already exists by calling Open, before you call CreateAsync. Only call CreateAsync if the Open call returns nothing.
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 |
Minimum supported server |
None supported |
Minimum supported phone |
None supported |
Namespace |
Windows.ApplicationModel.Core Windows::ApplicationModel::Core [C++] |
Metadata |
Windows.winmd |