Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Interface

File

interface File

Module: System.Storage
Assembly: System.Runtime.dll
Source file: StorageItems.rvn

Inherits: StorageItem
Part of closed hierarchy: StorageItem

The file branch of StorageItem, implemented by storage providers.

Remarks

Development interface after Preview 9. Implementations supply Name, Path and byte operations. File has no public constructor and owns no mandatory native handle. Current operations block and return directional streams; callers close successful streams. CreateNew remains a POC address-opening operation pending alignment of creation with resolved items. Static native text helpers moved to FileText. See the Storage guide.

Properties

2 items
Name: string Gets this item's represented name without performing a storage query. Inherited from StorageItem.Name · Defined by StorageItem.Name · Required implementation (no default).
Path: Path Gets this item's logical address in its provider namespace. Inherited from StorageItem.Path · Defined by StorageItem.Path · Required implementation (no default).

Methods

2 items
CreateNew() -> Result<OutputStream, StreamError> Exclusively creates an empty file for writing. Defined by File.CreateNew · Required implementation (no default).
OpenRead() -> Result<InputStream, StreamError> Opens existing bytes for reading. Defined by File.OpenRead · Required implementation (no default).