FileSystemFile MembersNFX Class Library

[This is preliminary documentation and is subject to change.]

The FileSystemFile type exposes the following members.
Constructors

  NameDescription
Public methodFileSystemFile
Internal method that should not be called by developers
Back to Top
Methods

  NameDescription
Public methodCheckCanChange
Throws when item can not change
(Inherited from FileSystemSessionItem.)
Public methodCheckCanChangeAsync (Inherited from FileSystemSessionItem.)
Public methodDelete
Deletes this item from file system
(Inherited from FileSystemSessionItem.)
Public methodDeleteAsync (Inherited from FileSystemSessionItem.)
Protected methodDestructor (Overrides FileSystemSessionItem Destructor .)
Public methodDispose
Deterministically disposes object. DO NOT OVERRIDE this method, override Destructor() instead
(Inherited from DisposableObject.)
Public methodEnsureObjectNotDisposed
Checks to see whether object dispose started or has already been disposed and throws an exception if Dispose() was called
(Inherited from DisposableObject.)
Public methodOnlineEquals
Determines whether the specified object is equal to the current object.
(Inherited from OnlineObject.)
Protected methodFinalize (Inherited from DisposableObject.)
Public methodGetCreationUserAsync
Async version of [P:CreationUser]
(Inherited from FileSystemSessionItem.)
Public methodOnlineGetHashCode
Serves as the default hash function.
(Inherited from OnlineObject.)
Public methodGetLastAccessUserAsync
Async version of [P:LastAccessUser]
(Inherited from FileSystemSessionItem.)
Public methodGetModificationUserAsync
Async version of [P:ModificationUser]
(Inherited from FileSystemSessionItem.)
Public methodGetSizeAsync
Async version of [P:Size]
(Inherited from FileSystemSessionItem.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodReadAllText 
Reads all text from file using byte order mark detection with UTF8 encoding
Public methodReadAllText(Encoding, Boolean, Int32)
Reads all text from stream using the specified parameters
Public methodReadAllTextAsync 
Public methodReadAllTextAsync(Encoding, Boolean, Int32)
Public methodRefresh
Refreshes the state represented by this item, i.e. this may re-read attributes from remote file system
(Inherited from FileSystemSessionItem.)
Public methodRefreshAsync (Inherited from FileSystemSessionItem.)
Public methodRename
Renames an item. Check file system capabilities to see if renaming is supported
(Inherited from FileSystemSessionItem.)
Public methodRenameAsync
Async version of Rename(String)
(Inherited from FileSystemSessionItem.)
Public methodSetCreationTimestampAsync
Async version of [P:CreationTimestamp]
(Inherited from FileSystemSessionItem.)
Public methodSetLastAccessTimestampAsync
Async version of [P:LastAccessTimestamp]
(Inherited from FileSystemSessionItem.)
Public methodSetModificationTimestampAsync
Async version of [P:ModificationTimestamp]
(Inherited from FileSystemSessionItem.)
Public methodSetReadOnlyAsync
Async version of [P:ReadOnly]
(Inherited from FileSystemSessionItem.)
Public methodToString (Inherited from FileSystemSessionItem.)
Public methodWriteAllText(String)
Sets file content to supplied string using default UTF8 encoding
Public methodWriteAllText(String, Encoding, Int32)
Sets file content to supplied string using the specified parameters
Public methodWriteAllTextAsync(String)
Async version of WriteAllText(String)
Public methodWriteAllTextAsync(String, Encoding, Int32)
Back to Top
Extension Methods

  NameDescription
Public Extension MethodAsBool (Defined by ObjectValueConversion.)
Public Extension MethodAsByte (Defined by ObjectValueConversion.)
Public Extension MethodAsChar (Defined by ObjectValueConversion.)
Public Extension MethodAsDateTime Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsDateTime(DateTime, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsDecimal (Defined by ObjectValueConversion.)
Public Extension MethodAsDouble (Defined by ObjectValueConversion.)
Public Extension MethodAsEnum TEnum  (Defined by ObjectValueConversion.)
Public Extension MethodAsFloat (Defined by ObjectValueConversion.)
Public Extension MethodAsGDID Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDID(GDID, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDIDSymbol Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDIDSymbol(GDIDSymbol, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGUID (Defined by ObjectValueConversion.)
Public Extension MethodAsInt (Defined by ObjectValueConversion.)
Public Extension MethodAsJSONConfig (Defined by ObjectValueConversion.)
Public Extension MethodAsLaconicConfig (Defined by ObjectValueConversion.)
Public Extension MethodAsLong (Defined by ObjectValueConversion.)
Public Extension MethodAsNonNullOrEmptyString (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableBool (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableByte (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableChar (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDateTime (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDecimal (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDouble (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableEnum TEnum  (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableFloat (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGDID (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGDIDSymbol (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGUID (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableInt (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableLong (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableSByte (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableShort (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableTimeSpan (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableUInt (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableULong (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableUShort (Defined by ObjectValueConversion.)
Public Extension MethodAsSByte (Defined by ObjectValueConversion.)
Public Extension MethodAsShort (Defined by ObjectValueConversion.)
Public Extension MethodAsString (Defined by ObjectValueConversion.)
Public Extension MethodAsTimeSpan Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsTimeSpan(TimeSpan, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsUInt (Defined by ObjectValueConversion.)
Public Extension MethodAsULong (Defined by ObjectValueConversion.)
Public Extension MethodAsUri (Defined by ObjectValueConversion.)
Public Extension MethodAsUShort (Defined by ObjectValueConversion.)
Public Extension MethodAsXMLConfig (Defined by ObjectValueConversion.)
Public Extension MethodToErlObject Overloaded.
Try to convert .NET native object type to corresponding Erlang term. Throw exception if conversion is not possible
(Defined by ErlObject.)
Public Extension MethodToErlObject(ErlTypeOrder, Boolean)Overloaded.
Try to convert .NET native object type to corresponding Erlang term of given type. Throw exception if conversion is not possible
(Defined by ErlObject.)
Public Extension MethodToJSON(JSONWritingOptions)Overloaded.
Serializes object into JSON string
(Defined by JSONExtensions.)
Public Extension MethodToJSON(TextWriter, JSONWritingOptions)Overloaded.
Serializes object into JSON format using provided TextWriter
(Defined by JSONExtensions.)
Public Extension MethodToJSON(Stream, JSONWritingOptions, Encoding)Overloaded.
Serializes object into JSON format using provided stream and optional encoding
(Defined by JSONExtensions.)
Back to Top
Fields

  NameDescription
Protected fieldm_FileSystem (Inherited from FileSystemSessionItem.)
Protected fieldm_Handle (Inherited from FileSystemSessionItem.)
Protected fieldm_Modified (Inherited from FileSystemSessionItem.)
Protected fieldm_Session (Inherited from FileSystemSessionItem.)
Back to Top
Properties

  NameDescription
Public propertyCreationTimestamp
Gets/sets UTC creation timestamp
(Inherited from FileSystemSessionItem.)
Public propertyCreationUser
Gets the user who created this item
(Inherited from FileSystemSessionItem.)
Public propertyDisposed
Indicates whether this object was already disposed - the Dispose() has finished
(Inherited from DisposableObject.)
Public propertyDisposeStarted
Indicates whether this object Dispose() has been called and dispose started but not finished yet
(Inherited from DisposableObject.)
Public propertyFileStream
Returns a stream usable for file content access. If the file has not opened stream yet it will be opened and cached
Public propertyFileSystem
Returns filesystem - this is a shortcut to Session.FileSystem
(Inherited from FileSystemSessionItem.)
Public propertyHandle
Returns file system handle for this entity
(Inherited from FileSystemSessionItem.)
Public propertyIsReadOnly
Indicates whether this item can change and file system supports modifications
(Inherited from FileSystemSessionItem.)
Public propertyLastAccessTimestamp
Gets/sets UTC last access timestamp
(Inherited from FileSystemSessionItem.)
Public propertyLastAccessUser
Gets the last user who accessed the item
(Inherited from FileSystemSessionItem.)
Public propertyMetadataStream
Returns item metadata stream
(Inherited from FileSystemSessionItem.)
Public propertyModificationTimestamp
Gets/sets UTC modification timestamp
(Inherited from FileSystemSessionItem.)
Public propertyModificationUser
Gets the user who modified this item
(Inherited from FileSystemSessionItem.)
Public propertyModified
Indicates whether anything has changed since last transaction has started
(Inherited from FileSystemSessionItem.)
Public propertyName (Inherited from FileSystemSessionItem.)
Public propertyParentPath
Returns path to directory that contains this item
(Inherited from FileSystemSessionItem.)
Public propertyPath
Returns an absolute path for this item
(Inherited from FileSystemSessionItem.)
Public propertyPermissionsStream
Returns item permissions stream
(Inherited from FileSystemSessionItem.)
Public propertyReadOnly
Gets/sets readonly attribute
(Inherited from FileSystemSessionItem.)
Public propertySession
Returns session through which this object was obtained
(Inherited from FileSystemSessionItem.)
Public propertySize
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.)
Back to Top
See Also