| IGDStorageFolderCreateFolderAsync Method (String, CreationCollisionOption) |
Creates a new folder in the current folder, and specifies what to do if a folder with the same name already exists in the current folder.
Namespace:
GD
Assembly:
GD (in GD.dll) Version: 255.255.255.255
Syntax IAsyncOperation<GDStorageFolder> CreateFolderAsync(
string desiredName,
CreationCollisionOption options
)
IAsyncOperation<GDStorageFolder^>^ CreateFolderAsync(
[InAttribute] String^ desiredName,
[InAttribute] CreationCollisionOption^ options
)
function CreateFolderAsync(desiredName, options);
Parameters
- desiredName
- Type: SystemString
The desired name of the folder to create.
If there is an existing folder in the current folder that already has the specified desiredName, the specified CreationCollisionOption determines how the SDK responds to the conflict.
- options
- Type: Windows.StorageCreationCollisionOption
The enum value that determines how the SDK responds if the desiredName is the same as the name of an existing folder in the current folder.
Return Value
Type:
IAsyncOperationGDStorageFolderWhen this method completes, it returns the new folder as a
GDStorageFolderRemarks If you simply want to create a folder in your app, see the
CreateFolderAsync methods of the
GDStorageFolder class.
See Also