Click or drag to resize

LiteStorageTFileId Methods

The LiteStorageTFileId type exposes the following members.

Methods
 NameDescription
Public methodDelete Delete a file inside datafile and all metadata related
Public methodDownload(TFileId, Stream) Copy all file content to a steam
Public methodDownload(TFileId, String, Boolean) Copy all file content to a file
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExists Returns if a file exisits in database
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodFind(BsonExpression) Find all files that match with predicate expression.
Public methodFind(ExpressionFuncLiteFileInfoTFileId, Boolean) Find all files that match with predicate expression.
Public methodFind(String, BsonDocument) Find all files that match with predicate expression.
Public methodFind(String, BsonValue) Find all files that match with predicate expression.
Public methodFindAll Find all files inside file collections
Public methodFindById Find a file inside datafile and returns LiteFileInfo instance. Returns null if not found
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOpenRead Load data inside storage and returns as Stream
Public methodOpenWrite Open/Create new file storage and returns linked Stream to write operations.
Public methodSetMetadata Update metadata on a file. File must exist.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUpload(TFileId, String) Upload a file based on file system data
Public methodUpload(TFileId, String, Stream, BsonDocument) Upload a file based on stream data
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also