Skip to main content

CreateFileAsync Method

Creates a file with specified name as a child of the current storage folder

Definition

Namespace: Avalonia.Platform.Storage
Assembly: Avalonia.Base (in Avalonia.Base.dll)

Task<IStorageFile?> CreateFileAsync(
string name
)
View Source

Parameters

  String
The display name

Return Value

Task(IStorageFile)
A new IStorageFile pointing to the moved file. If not null, the current storage item becomes invalid

See Also

Reference

IStorageFolder Interface
Avalonia.Platform.Storage Namespace