IStorageFolder2 IStorageFolder2 IStorageFolder2 IStorageFolder2 Interface

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.

Syntax

Declaration

public interface IStorageFolder2public interface IStorageFolder2Public Interface IStorageFolder2public interface IStorageFolder2

Remarks

Important

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

Methods summary

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

Methods

  • TryGetItemAsync(String)
    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(String name)public IAsyncOperation<IStorageItem> TryGetItemAsync(String name)Public Function TryGetItemAsync(name As String) As IAsyncOperation( Of IStorageItem )public IAsyncOperation<IStorageItem> TryGetItemAsync(String name)

    Parameters

    • name
      System.String
      System.String
      System.String
      System.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 ).

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.GuidAttribute

Details

Assembly

Windows.Storage.dll