IStorageFile2 介面

定義

表示檔案。 提供檔案及其內容的相關資訊,以及操作方式。

重要

如果您只想在應用程式中使用檔案,請參閱 StorageFile 類別。

public interface class IStorageFile2
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2504936399, 2679, 17147, 183, 119, 194, 237, 88, 165, 46, 68)]
struct IStorageFile2
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(2504936399, 2679, 17147, 183, 119, 194, 237, 88, 165, 46, 68)]
public interface IStorageFile2
Public Interface IStorageFile2
衍生
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

方法

OpenAsync(FileAccessMode, StorageOpenOptions)

開啟檔案上的隨機存取資料流程。

OpenTransactedWriteAsync(StorageOpenOptions)

開啟檔案的隨機存取資料流程,此資料流程可用於具有指定選項的 Transacted-write 作業。

適用於