IStorageFolder interface

Applies to Windows and Windows Phone

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

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

Syntax


public interface IStorageFolder : IStorageItem

Attributes

[Version(0x06020000)]

Members

The IStorageFolder interface has these types of members:

Methods

The IStorageFolder interface has these methods. It also inherits methods from the Object class.

MethodDescription
CreateFileAsync(String) Creates a new file in the current folder.
CreateFileAsync(String, CreationCollisionOption) Creates a new file in the current folder, and specifies what to do if a file with the same name already exists in the current folder.
CreateFolderAsync(String) Creates a new folder in the current folder.
CreateFolderAsync(String, CreationCollisionOption) Creates a new folder in the current folder, and specifies what to do if a folder with the same name already exists in the current folder.
GetFileAsync Gets the specified file from the current folder.
GetFilesAsync Gets the files from the current folder.
GetFolderAsync Gets the specified folder from the current folder.
GetFoldersAsync Gets the folders in the current folder.
GetItemAsync Gets the specified item from the IStorageFolder.
GetItemsAsync Gets the items from the current folder.

 

Remarks

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

Interface inheritance

IStorageFile inherits IStorageItem. Types that implement IStorageFile also implement the interface members of IStorageItem.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

Capabilities

picturesLibrary
videosLibrary
musicLibrary
documentsLibrary

See also

IStorageItem
StorageFolder

 

 

Show:
© 2014 Microsoft