IStorageFolder IStorageFolder IStorageFolder IStorageFolder IStorageFolder 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 IStorageFolder : IStorageItem
struct winrt::Windows::Storage::IStorageFolder : IStorageItem
public interface IStorageFolder : IStorageItem
Public Interface IStorageFolder Implements IStorageItem
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Inheritance
IStorageFolderIStorageFolderIStorageFolderIStorageFolderIStorageFolder
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
musicLibrary picturesLibrary videosLibrary documentsLibrary

Methods

CreateFileAsync(String) CreateFileAsync(String) CreateFileAsync(String) CreateFileAsync(String) CreateFileAsync(String)

Creates a new file in the current folder.

CreateFileAsync(String, CreationCollisionOption) CreateFileAsync(String, CreationCollisionOption) CreateFileAsync(String, CreationCollisionOption) CreateFileAsync(String, CreationCollisionOption) 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) CreateFolderAsync(String) CreateFolderAsync(String) CreateFolderAsync(String) CreateFolderAsync(String)

Creates a new folder in the current folder.

CreateFolderAsync(String, CreationCollisionOption) CreateFolderAsync(String, CreationCollisionOption) CreateFolderAsync(String, CreationCollisionOption) CreateFolderAsync(String, CreationCollisionOption) 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.

DeleteAsync DeleteAsync DeleteAsync DeleteAsync DeleteAsync

Deletes the current item.

(Inherited from IStorageItem)
DeleteAsync(StorageDeleteOption) DeleteAsync(StorageDeleteOption) DeleteAsync(StorageDeleteOption) DeleteAsync(StorageDeleteOption) DeleteAsync(StorageDeleteOption)

Deletes the current item, optionally deleting it permanently.

(Inherited from IStorageItem)
GetBasicPropertiesAsync GetBasicPropertiesAsync GetBasicPropertiesAsync GetBasicPropertiesAsync GetBasicPropertiesAsync

Gets the basic properties of the current item (like a file or folder).

(Inherited from IStorageItem)
GetFileAsync(String) GetFileAsync(String) GetFileAsync(String) GetFileAsync(String) GetFileAsync(String)

Gets the specified file from the current folder.

GetFilesAsync() GetFilesAsync() GetFilesAsync() GetFilesAsync() GetFilesAsync()

Gets the files from the current folder.

GetFolderAsync(String) GetFolderAsync(String) GetFolderAsync(String) GetFolderAsync(String) GetFolderAsync(String)

Gets the specified folder from the current folder.

GetFoldersAsync() GetFoldersAsync() GetFoldersAsync() GetFoldersAsync() GetFoldersAsync()

Gets the folders in the current folder.

GetItemAsync(String) GetItemAsync(String) GetItemAsync(String) GetItemAsync(String) GetItemAsync(String)

Gets the specified item from the IStorageFolder.

GetItemsAsync() GetItemsAsync() GetItemsAsync() GetItemsAsync() GetItemsAsync()

Gets the items from the current folder.

IsOfType(StorageItemTypes) IsOfType(StorageItemTypes) IsOfType(StorageItemTypes) IsOfType(StorageItemTypes) IsOfType(StorageItemTypes)

Determines whether the current IStorageItem matches the specified StorageItemTypes value.

(Inherited from IStorageItem)
RenameAsync(String) RenameAsync(String) RenameAsync(String) RenameAsync(String) RenameAsync(String)

Renames the current item.

(Inherited from IStorageItem)
RenameAsync(String,NameCollisionOption) RenameAsync(String,NameCollisionOption) RenameAsync(String,NameCollisionOption) RenameAsync(String,NameCollisionOption) RenameAsync(String,NameCollisionOption)

Renames the current item. This method also specifies what to do if an existing item in the current item's location has the same name.

(Inherited from IStorageItem)

Properties

Attributes Attributes Attributes Attributes Attributes

Gets the attributes of a storage item.

(Inherited from IStorageItem)
DateCreated DateCreated DateCreated DateCreated DateCreated

Gets the date and time when the current item was created.

(Inherited from IStorageItem)
Name Name Name Name Name

Gets the name of the item including the file name extension if there is one.

(Inherited from IStorageItem)
Path Path Path Path Path

Gets the full file-system path of the item, if the item has a path.

(Inherited from IStorageItem)

See Also