Dela via


IStorageFile2 Interface

Definition

Represents a file. Provides information about the file and its contents, and ways to manipulate them.

Important

If you simply want to work with files in your app, see the StorageFile class.

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
Derived
Attributes

Windows requirements

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

Methods

OpenAsync(FileAccessMode, StorageOpenOptions)

Opens a random-access stream over the file.

OpenTransactedWriteAsync(StorageOpenOptions)

Opens a random-access stream to the file that can be used for transacted-write operations with the specified options.

Applies to