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 操作に使用できるファイルへのランダム アクセス ストリームを開きます。

適用対象