FolderInformation.CreateFolderAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateFolderAsync(String) |
Creates a new child folder of the current folder. |
CreateFolderAsync(String, CreationCollisionOption) |
Creates a new child folder of the current folder, and specifies what to do if a folder with the same name already exists in the current folder. |
CreateFolderAsync(String)
Creates a new child folder of the current folder.
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)
Parameters
- desiredName
-
String
Platform::String
winrt::hstring
The name of the new folder.
Returns
When this method completes successfully, it returns a StorageFolder that represents the new file.
Implements
- Attributes
See also
Applies to
CreateFolderAsync(String, CreationCollisionOption)
Creates a new child folder of the current folder, and specifies what to do if a folder with the same name already exists in the current folder.
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)
Parameters
- desiredName
-
String
Platform::String
winrt::hstring
The name of the new folder.
- options
- CreationCollisionOption
A value that indicates what to do if the child folder already exists in the current folder.
Returns
When this method completes successfully, it returns a StorageFolder that represents the new file.
Implements
- Attributes