Click or drag to resize
GDStorageFolderGetFolderFromPathAsync Method
Gets the folder that has the specified absolute path in the file system.

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

Parameters

path
Type: SystemString
The absolute path in the file system (not the Uri) of the folder to get.

Return Value

Type: IAsyncOperationGDStorageFolder
When this method completes successfully, it returns a GDStorageFolder that represents the specified folder.
Exceptions
ExceptionCondition
Exception(C# equivalent: System.IO.FileNotFoundException) The specified folder does not exist. Check the value of path.
AccessDeniedException(C# equivalent: System.UnauthorizedAccessException) Secure storage was remotely wiped.
InvalidArgumentException(C# equivalent: System.ArgumentException) The path cannot be a relative path or a Uri. Check the value of path.
Examples
The following example shows how to get the folder that has the specified absolute path in the SDK secure storage.
using GD;

// Get the folder object that corresponds some path inside GD secure storage
GDStorageFolder folder = await GDStorageFolder.GetFolderFromPathAsync(@"\foo\bar");
See Also