IStorageFolder.CreateFolderAsync 方法    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| CreateFolderAsync(String) | 在当前文件夹中创建新文件夹。 | 
| CreateFolderAsync(String, CreationCollisionOption) | 在当前文件夹中创建新文件夹,并指定在当前文件夹中已存在同名文件夹时要执行的操作。 | 
CreateFolderAsync(String)
在当前文件夹中创建新文件夹。
public:
 IAsyncOperation<StorageFolder ^> ^ CreateFolderAsync(Platform::String ^ desiredName);/// [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 的形式返回新文件夹。
- 属性
另请参阅
适用于
CreateFolderAsync(String, CreationCollisionOption)
在当前文件夹中创建新文件夹,并指定在当前文件夹中已存在同名文件夹时要执行的操作。
public:
 IAsyncOperation<StorageFolder ^> ^ CreateFolderAsync(Platform::String ^ desiredName, CreationCollisionOption options);/// [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 
要创建的文件夹的所需名称。
如果当前文件夹中已有指定 desiredName 的现有文件夹,则指定的 CreationCollisionOption 将确定 Windows 如何响应冲突。
- options
- CreationCollisionOption
如果 desiredName 与当前文件夹中现有文件夹的名称相同,则确定 Windows 如何响应的枚举值。
返回
此方法完成后,它会以 StorageFolder 的形式返回新文件夹。
- 属性