Click or drag to resize
IGDStorageFolderCreateFileAsync Method (String, CreationCollisionOption)
Creates a new file in the current folder, and specifies what to do if a file with the same name already exists in the current folder.

Namespace:  GD
Assembly:  GD (in GD.dll) Version: 255.255.255.255
Syntax
IAsyncOperation<GDStorageFile> CreateFileAsync(
	string desiredName,
	CreationCollisionOption options
)

Parameters

desiredName
Type: SystemString

The desired name of the file to create.

If there is an existing file 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 file in the current folder.

Return Value

Type: IAsyncOperationGDStorageFile
When this method completes, it returns the new file as a GDStorageFile
Remarks
If you simply want to create a file in your app, see the CreateFileAsync methods of the GDStorageFolder class.
See Also