Delen via


IStorageItem2 Interface

Definition

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

Important

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

public interface class IStorageItem2 : IStorageItem
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1408837330, 2108, 17027, 180, 91, 129, 192, 7, 35, 126, 68)]
struct IStorageItem2 : IStorageItem
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1408837330, 2108, 17027, 180, 91, 129, 192, 7, 35, 126, 68)]
public interface IStorageItem2 : IStorageItem
Public Interface IStorageItem2
Implements IStorageItem
Derived
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

Attributes

Gets the attributes of a storage item.

(Inherited from IStorageItem)
DateCreated

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

(Inherited from IStorageItem)
Name

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

(Inherited from IStorageItem)
Path

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

(Inherited from IStorageItem)

Methods

DeleteAsync()

Deletes the current item.

(Inherited from IStorageItem)
DeleteAsync(StorageDeleteOption)

Deletes the current item, optionally deleting it permanently.

(Inherited from IStorageItem)
GetBasicPropertiesAsync()

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

(Inherited from IStorageItem)
GetParentAsync()

Gets the parent folder of the current storage item.

IsEqual(IStorageItem)

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

IsOfType(StorageItemTypes)

Determines whether the current IStorageItem matches the specified StorageItemTypes value.

(Inherited from IStorageItem)
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)
RenameAsync(String)

Renames the current item.

(Inherited from IStorageItem)

Applies to

See also