Click or drag to resize
GDStorageFileGetFileFromPathAsync Method
Gets a GDStorageFile object to represent the file at the specified path.

Namespace:  GD
Assembly:  GD (in GD.dll) Version: 255.255.255.255
Syntax
public static IAsyncOperation<GDStorageFile> GetFileFromPathAsync(
	string path
)

Parameters

path
Type: SystemString

The path of the file to get a GDStorageFile to represent.

If your path uses slashes (/), this method will replace them with backslashes (\).

Return Value

Type: IAsyncOperationGDStorageFile
When this method completes, it returns the file as a GDStorageFile.
Exceptions
ExceptionCondition
AccessDeniedException(C# equivalent: System.UnauthorizedAccessException) Secure storage was remotely wiped.
Exception(C# equivalent: System.IO.FileNotFoundException) File could not be found. HResult ERROR_FILE_NOT_FOUND.
See Also