I​Storage​Folder2 I​Storage​Folder2 I​Storage​Folder2 Interface

Definition

Manipulates folders and their contents, and provides information about them.

Important

If you simply want to work with folders in your app, see the StorageFolder class.

public : interface IStorageFolder2public interface IStorageFolder2Public Interface IStorageFolder2
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Important

If you simply want to work with folders in your app, see the StorageFolder class.

Methods

TryGetItemAsync(String) TryGetItemAsync(String) TryGetItemAsync(String)

Try to get a single file or sub-folder from the current folder by using the name of the item.

public : IAsyncOperation<IStorageItem> TryGetItemAsync(PlatForm::String name)public IAsyncOperation<IStorageItem> TryGetItemAsync(String name)Public Function TryGetItemAsync(name As String) As IAsyncOperation( Of IStorageItem )
Parameters
name
PlatForm::String String String

The name (or path relative to the current folder) of the file or sub-folder to try to retrieve.

Returns

When this method completes successfully, it returns the file or folder (type IStorageItem ).

Attributes