Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.22 KB

storagefile_getfilefrompathasync_1252266672.md

File metadata and controls

42 lines (27 loc) · 1.22 KB
-api-id -api-type
M:Windows.Storage.StorageFile.GetFileFromPathAsync(System.String)
winrt method

Windows.Storage.StorageFile.GetFileFromPathAsync

-description

Gets a StorageFile object to represent the file at the specified path.

-parameters

-param path

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

If your path uses slashes, make sure you use backslashes (\). Forward slashes (/) are not accepted by this method.

-returns

When this method completes, it returns the file as a StorageFile.

-exceptions

T:System.IO.FileNotFoundException

The specified file does not exist. Check the value of path.

T:System.UnauthorizedAccessException

You don't have permission to access the specified file. For more information, see File access permissions.

T:System.ArgumentException

The path cannot be a relative path or a Uri. Check the value of path.

-remarks

-examples

-see-also

File access permissions