IStorageItem2 IStorageItem2 IStorageItem2 IStorageItem2 IStorageItem2 Interface


Manipulates storage items (files and folders) and their contents, and provides information about them.


If you simply want to work with files and folders in your app, see the StorageFile and StorageFolder classes.

public : interface IStorageItem2 : IStorageItem
struct winrt::Windows::Storage::IStorageItem2 : IStorageItem
public interface IStorageItem2 : IStorageItem
Public Interface IStorageItem2 Implements IStorageItem
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


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)
GetParentAsync() GetParentAsync() GetParentAsync() GetParentAsync() GetParentAsync()

Gets the parent folder of the current storage item.

IsEqual(IStorageItem) IsEqual(IStorageItem) IsEqual(IStorageItem) IsEqual(IStorageItem) IsEqual(IStorageItem)

Indicates whether the current item is the same as the specified item.

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)


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