共用方式為


ApplicationDataContainer.CreateContainer Method

Definition

Create or open the specified settings container in the settings container.

public:
 virtual ApplicationDataContainer ^ CreateContainer(Platform::String ^ name, ApplicationDataCreateDisposition disposition) = CreateContainer;
ApplicationDataContainer CreateContainer(winrt::hstring const& name, ApplicationDataCreateDisposition const& disposition);
public ApplicationDataContainer CreateContainer(string name, ApplicationDataCreateDisposition disposition);
function createContainer(name, disposition)
Public Function CreateContainer (name As String, disposition As ApplicationDataCreateDisposition) As ApplicationDataContainer

Parameters

name
String

Platform::String

winrt::hstring

The name of the settings container to create or open.

disposition
ApplicationDataCreateDisposition

The ApplicationDataCreateDisposition behavior to use when the container is created or opened.

Returns

Applies to

See also