IStorageItem Interface

操作存储项(文件和文件夹)及其内容,并提供有关它们的信息。

语法


public interface IStorageItem

特性

[Version(0x06020000)]

成员

IStorageItem接口 具有以下类型的成员:

方法

The IStorageItem 接口 具有以下方法。 它还继承以下内容中的方法 Object 类.

方法描述
DeleteAsync() Deletes the current item.
DeleteAsync(StorageDeleteOption) Deletes the current item, optionally deleting it permanently.
GetBasicPropertiesAsync Gets the basic properties of the current item (like a file or folder).
IsOfType Determines whether the current IStorageItem matches the specified StorageItemTypes value.
RenameAsync(String) Renames the current item.
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.

 

属性

IStorageItem接口 具有以下属性。

属性访问类型描述

Attributes

只读Gets the attributes of a storage item.

DateCreated

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

Name

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

Path

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

 

要求

最低受支持的客户端

Windows 8

最低受支持的服务器

Windows Server 2012

最低受支持的电话

Windows Phone 8

命名空间

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

元数据

Windows.winmd

 

 

显示:
© 2014 Microsoft