[This is preliminary documentation and is subject to change.]
The FileSystemFile type exposes the following members.Constructors
| Name | Description | |
|---|---|---|
| FileSystemFile |
Internal method that should not be called by developers
|
Methods
| Name | Description | |
|---|---|---|
| CheckCanChange |
Throws when item can not change
(Inherited from FileSystemSessionItem.) | |
| CheckCanChangeAsync |
Async version of CheckCanChange (Inherited from FileSystemSessionItem.) | |
| Delete |
Deletes this item from file system
(Inherited from FileSystemSessionItem.) | |
| DeleteAsync |
Async version of Delete (Inherited from FileSystemSessionItem.) | |
| Destructor | (Overrides FileSystemSessionItem Destructor .) | |
| Dispose |
Deterministically disposes object. DO NOT OVERRIDE this method, override Destructor() instead
(Inherited from DisposableObject.) | |
| EnsureObjectNotDisposed |
Checks to see whether object dispose started or has already been disposed and throws an exception if Dispose() was called
(Inherited from DisposableObject.) | |
Determines whether the specified object is equal to the current object. (Inherited from | ||
| Finalize | (Inherited from DisposableObject.) | |
| GetCreationUserAsync |
Async version of [P:CreationUser] (Inherited from FileSystemSessionItem.) | |
Serves as the default hash function. (Inherited from | ||
| GetLastAccessUserAsync |
Async version of [P:LastAccessUser] (Inherited from FileSystemSessionItem.) | |
| GetModificationUserAsync |
Async version of [P:ModificationUser] (Inherited from FileSystemSessionItem.) | |
| GetSizeAsync |
Async version of [P:Size] (Inherited from FileSystemSessionItem.) | |
Gets the (Inherited from | ||
Creates a shallow copy of the current (Inherited from | ||
| ReadAllText |
Reads all text from file using byte order mark detection with UTF8 encoding
| |
| ReadAllText(Encoding, Boolean, Int32) |
Reads all text from stream using the specified parameters
| |
| ReadAllTextAsync |
Async version of ReadAllText | |
| ReadAllTextAsync(Encoding, Boolean, Int32) |
Async version of ReadAllText(Encoding, Boolean, Int32) | |
| Refresh |
Refreshes the state represented by this item, i.e. this may re-read attributes from remote file system
(Inherited from FileSystemSessionItem.) | |
| RefreshAsync |
Async version of Refresh (Inherited from FileSystemSessionItem.) | |
| Rename |
Renames an item. Check file system capabilities to see if renaming is supported
(Inherited from FileSystemSessionItem.) | |
| RenameAsync |
Async version of Rename(String) (Inherited from FileSystemSessionItem.) | |
| SetCreationTimestampAsync |
Async version of [P:CreationTimestamp] (Inherited from FileSystemSessionItem.) | |
| SetLastAccessTimestampAsync |
Async version of [P:LastAccessTimestamp] (Inherited from FileSystemSessionItem.) | |
| SetModificationTimestampAsync |
Async version of [P:ModificationTimestamp] (Inherited from FileSystemSessionItem.) | |
| SetReadOnlyAsync |
Async version of [P:ReadOnly] (Inherited from FileSystemSessionItem.) | |
| ToString | (Inherited from FileSystemSessionItem.) | |
| WriteAllText(String) |
Sets file content to supplied string using default UTF8 encoding
| |
| WriteAllText(String, Encoding, Int32) |
Sets file content to supplied string using the specified parameters
| |
| WriteAllTextAsync(String) |
Async version of WriteAllText(String) | |
| WriteAllTextAsync(String, Encoding, Int32) |
Async version of WriteAllText(String, Encoding, Int32) |
Extension Methods
Fields
| Name | Description | |
|---|---|---|
| m_FileSystem | (Inherited from FileSystemSessionItem.) | |
| m_Handle | (Inherited from FileSystemSessionItem.) | |
| m_Modified | (Inherited from FileSystemSessionItem.) | |
| m_Session | (Inherited from FileSystemSessionItem.) |
Properties
| Name | Description | |
|---|---|---|
| CreationTimestamp |
Gets/sets UTC creation timestamp
(Inherited from FileSystemSessionItem.) | |
| CreationUser |
Gets the user who created this item
(Inherited from FileSystemSessionItem.) | |
| Disposed |
Indicates whether this object was already disposed - the Dispose() has finished
(Inherited from DisposableObject.) | |
| DisposeStarted |
Indicates whether this object Dispose() has been called and dispose started but not finished yet
(Inherited from DisposableObject.) | |
| FileStream |
Returns a stream usable for file content access. If the file has not opened stream yet it will be opened and cached
| |
| FileSystem |
Returns filesystem - this is a shortcut to Session.FileSystem
(Inherited from FileSystemSessionItem.) | |
| Handle |
Returns file system handle for this entity
(Inherited from FileSystemSessionItem.) | |
| IsReadOnly |
Indicates whether this item can change and file system supports modifications
(Inherited from FileSystemSessionItem.) | |
| LastAccessTimestamp |
Gets/sets UTC last access timestamp
(Inherited from FileSystemSessionItem.) | |
| LastAccessUser |
Gets the last user who accessed the item
(Inherited from FileSystemSessionItem.) | |
| MetadataStream |
Returns item metadata stream
(Inherited from FileSystemSessionItem.) | |
| ModificationTimestamp |
Gets/sets UTC modification timestamp
(Inherited from FileSystemSessionItem.) | |
| ModificationUser |
Gets the user who modified this item
(Inherited from FileSystemSessionItem.) | |
| Modified |
Indicates whether anything has changed since last transaction has started
(Inherited from FileSystemSessionItem.) | |
| Name | (Inherited from FileSystemSessionItem.) | |
| ParentPath |
Returns path to directory that contains this item
(Inherited from FileSystemSessionItem.) | |
| Path |
Returns an absolute path for this item
(Inherited from FileSystemSessionItem.) | |
| PermissionsStream |
Returns item permissions stream
(Inherited from FileSystemSessionItem.) | |
| ReadOnly |
Gets/sets readonly attribute
(Inherited from FileSystemSessionItem.) | |
| Session |
Returns session through which this object was obtained
(Inherited from FileSystemSessionItem.) | |
| Size |
Returns the byte size of the item, depending on implementation this property may return approximate sizes for files and directories
(i.e in distributed systems)
(Inherited from FileSystemSessionItem.) |
See Also