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)
- C#
- VB
- F#
Task<IStorageFile?> CreateFileAsync(
string name
)
Function CreateFileAsync (
name As String
) As Task(Of IStorageFile)
abstract CreateFileAsync :
name : string -> Task<IStorageFile>
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