IStorageFolder Interface

操作文件夹及其内容,并提供有关它们的信息。

语法


public interface IStorageFolder : IStorageItem

特性

[Version(0x06020000)]

成员

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

方法

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

方法描述
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.

 

备注

接口继承

IStorageFile 继承 IStorageItem。 用于实现 IStorageFile 的类型也可实现 IStorageItem 的接口成员。

要求

最低受支持的客户端

Windows 8

最低受支持的服务器

Windows Server 2012

最低受支持的电话

Windows Phone 8

命名空间

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

元数据

Windows.winmd

Capabilities

picturesLibrary
videosLibrary
musicLibrary
documentsLibrary

另请参阅

IStorageItem

 

 

显示:
© 2014 Microsoft