FolderInformation.CreateFolderAsync 方法

定义

重载

CreateFolderAsync(String)

创建当前文件夹的新子文件夹。

CreateFolderAsync(String, CreationCollisionOption)

创建当前文件夹的新子文件夹,并指定在当前文件夹中已存在同名文件夹时要执行的操作。

CreateFolderAsync(String)

创建当前文件夹的新子文件夹。

public:
 virtual IAsyncOperation<StorageFolder ^> ^ CreateFolderAsync(Platform::String ^ desiredName) = CreateFolderAsync;
/// [Windows.Foundation.Metadata.Overload("CreateFolderAsyncOverloadDefaultOptions")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageFolder> CreateFolderAsync(winrt::hstring const& desiredName);
[Windows.Foundation.Metadata.Overload("CreateFolderAsyncOverloadDefaultOptions")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageFolder> CreateFolderAsync(string desiredName);
function createFolderAsync(desiredName)
Public Function CreateFolderAsync (desiredName As String) As IAsyncOperation(Of StorageFolder)

参数

desiredName
String

Platform::String

winrt::hstring

新文件夹的名称。

返回

此方法成功完成后,它将返回一个代表新文件的 StorageFolder

实现

M:Windows.Storage.IStorageFolder.CreateFolderAsync(System.String) M:Windows.Storage.IStorageFolder.CreateFolderAsync(Platform::String) M:Windows.Storage.IStorageFolder.CreateFolderAsync(winrt::hstring)
属性

另请参阅

适用于

CreateFolderAsync(String, CreationCollisionOption)

创建当前文件夹的新子文件夹,并指定在当前文件夹中已存在同名文件夹时要执行的操作。

public:
 virtual IAsyncOperation<StorageFolder ^> ^ CreateFolderAsync(Platform::String ^ desiredName, CreationCollisionOption options) = CreateFolderAsync;
/// [Windows.Foundation.Metadata.Overload("CreateFolderAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageFolder> CreateFolderAsync(winrt::hstring const& desiredName, CreationCollisionOption const& options);
[Windows.Foundation.Metadata.Overload("CreateFolderAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageFolder> CreateFolderAsync(string desiredName, CreationCollisionOption options);
function createFolderAsync(desiredName, options)
Public Function CreateFolderAsync (desiredName As String, options As CreationCollisionOption) As IAsyncOperation(Of StorageFolder)

参数

desiredName
String

Platform::String

winrt::hstring

新文件夹的名称。

options
CreationCollisionOption

一个 值,该值指示在当前文件夹中已存在子文件夹时要执行的操作。

返回

此方法成功完成后,它将返回一个代表新文件的 StorageFolder

实现

M:Windows.Storage.IStorageFolder.CreateFolderAsync(System.String,Windows.Storage.CreationCollisionOption) M:Windows.Storage.IStorageFolder.CreateFolderAsync(Platform::String,Windows.Storage.CreationCollisionOption) M:Windows.Storage.IStorageFolder.CreateFolderAsync(winrt::hstring,Windows.Storage.CreationCollisionOption)
属性

另请参阅

适用于