共用方式為


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)
屬性

另請參閱

適用於