| 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
)
public:
static IAsyncOperation<GDStorageFolder^>^ GetFolderFromPathAsync(
[InAttribute] String^ path
)
GD.GDStorageFolder.GetFolderFromPathAsync = function(path);
Parameters
- path
- Type: SystemString
The absolute path in the file system (not the Uri) of the folder to get.
Return Value
Type:
IAsyncOperationGDStorageFolderWhen this method completes successfully, it returns a
GDStorageFolder that represents the specified folder.
Exceptions Exception | Condition |
---|
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;
GDStorageFolder folder = await GDStorageFolder.GetFolderFromPathAsync(@"\foo\bar");
See Also