StorageFile class winrt Class

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

Inheritance
Implemented types
Available extensions

Properties

attributes → FileAttributes
no setteroverride
contentType → String
no setteroverride
dateCreated → DateTime
no setteroverride
fileType → String
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
iids → List<String>

Available on IInspectable, provided by the IInspectableExtension extension

Returns the interface IIDs that are implemented by the current Windows Runtime class.
no setter
name → String
no setteroverride
path → String
no setteroverride
ptr ↔ Pointer<COMObject>
getter/setter pairinherited
runtimeClassName → String

Available on IInspectable, provided by the IInspectableExtension extension

Gets the fully qualified name of the current Windows Runtime object.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
trustLevel → TrustLevel

Available on IInspectable, provided by the IInspectableExtension extension

Gets the trust level of the current Windows Runtime object.
no setter

Methods

addRef() → int
Increments the reference count for an interface pointer to a COM object.
inherited
copyAndReplaceAsync(IStorageFile fileToReplace) → Future<void>
override
deleteAsync(StorageDeleteOption option) → Future<void>
override
deleteAsyncOverloadDefaultOptions() → Future<void>
override
getBasicPropertiesAsync() → Future<BasicProperties?>
override
getIids(Pointer<Uint32> iidCount, Pointer<Pointer<GUID>> iids) → int
inherited
getRuntimeClassName(Pointer<IntPtr> className) → int
inherited
getTrustLevel(Pointer<Int32> trustLevel) → int
inherited
isOfType(StorageItemTypes type) → bool
override
moveAndReplaceAsync(IStorageFile fileToReplace) → Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryInterface(Pointer<GUID> riid, Pointer<Pointer<NativeType>> ppvObject) → int
Queries a COM object for a pointer to one of its interface; identifying the interface by a reference to its interface identifier (IID).
inherited
release() → int
Decrements the reference count for an interface on a COM object.
inherited
renameAsync(String desiredName, NameCollisionOption option) → Future<void>
override
renameAsyncOverloadDefaultOptions(String desiredName) → Future<void>
override
toInterface(String iid) → Pointer<COMObject>
Cast an existing COM object to a specified interface.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited