Skip to main content
StorageFolder.GetParentAsync | getParentAsync method

Applies to Windows only

Gets the parent folder of the current folder.

Syntax


storageFolder.getParentAsync().done( /* Your success and error handlers */ );

public IAsyncOperation<StorageFolder> GetParentAsync()

Public Function GetParentAsync() As IAsyncOperation(Of StorageFolder)

public:
IAsyncOperation<StorageFolder>^ GetParentAsync()

Parameters

This method has no parameters.

Return value

Type: IAsyncOperation<StorageFolder>

When this method completes, it returns the parent folder as a StorageFolder.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

Windows.Storage
Windows::Storage [C++]

Metadata

Windows.winmd

See also

StorageFolder