Click or drag to resize

MongoGridFSFileInfo Class

Represents information about a GridFS file (patterned after .NET's FileInfo class).
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.GridFSMongoGridFSFileInfo

Namespace:  MongoDB.Driver.GridFS
Assembly:  MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.18.0+554c799eb1ec8dd732f16c739387f6664df1ba7a
Syntax
public class MongoGridFSFileInfo : IEquatable<MongoGridFSFileInfo>

The MongoGridFSFileInfo type exposes the following members.

Constructors
  NameDescription
Public methodMongoGridFSFileInfo(MongoGridFS, String) Obsolete.
Initializes a new instance of the GridFSFileInfo class.
Public methodMongoGridFSFileInfo(MongoGridFS, String, MongoGridFSCreateOptions) Obsolete.
Initializes a new instance of the GridFSFileInfo class.
Public methodMongoGridFSFileInfo(MongoGridFS, String, Int32) Obsolete.
Initializes a new instance of the GridFSFileInfo class.
Public methodMongoGridFSFileInfo(MongoServer, MongoServerInstance, String, MongoGridFSSettings, BsonDocument)
Initializes a new instance of the MongoGridFSFileInfo class.
Public methodMongoGridFSFileInfo(MongoServer, MongoServerInstance, String, MongoGridFSSettings, String)
Initializes a new instance of the MongoGridFSFileInfo class.
Public methodMongoGridFSFileInfo(MongoServer, MongoServerInstance, String, MongoGridFSSettings, String, MongoGridFSCreateOptions)
Initializes a new instance of the MongoGridFSFileInfo class.
Top
Properties
  NameDescription
Public propertyAliases
Gets the aliases.
Public propertyChunkSize
Gets the chunk size.
Public propertyContentType
Gets the content type.
Public propertyDatabaseName
Gets the database name.
Public propertyExists
Gets a value indicating whether the GridFS file exists.
Public propertyGridFS
Gets the GridFS file system that contains this GridFS file.
Public propertyGridFSSettings
Gets the GridFS settings.
Public propertyId
Gets the GridFS file Id.
Public propertyLength
Gets the file lenth.
Public propertyMD5
Gets the MD5 hash of the file contents.
Public propertyMetadata
Gets the metadata.
Public propertyName
Gets the remote file name.
Public propertyServer
Gets the server.
Public propertyServerInstance
Gets the server instance;
Public propertyUploadDate
Gets the upload date.
Top
Methods
  NameDescription
Public methodAppendText
Appends UTF-8 encoded text to an existing GridFS file.
Public methodCopyTo(String)
Copies a GridFS file.
Public methodCopyTo(String, MongoGridFSCreateOptions)
Copies a GridFS file.
Public methodCreate
Creates or overwrites a GridFS file.
Public methodCreateText
Creates or opens a GridFS file for writing UTF-8 encoded text.
Public methodDelete
Deletes a GridFS file.
Public methodEquals(Object)
Determines whether this instance and a specified object, which must also be a MongoGridFSFileInfo object, have the same value.
(Overrides ObjectEquals(Object).)
Public methodEquals(MongoGridFSFileInfo)
Determines whether this instance and another specified MongoGridFSFileInfo object have the same value.
Public methodStatic memberEquals(MongoGridFSFileInfo, MongoGridFSFileInfo)
Determines whether two specified MongoGridFSFileInfo objects have the same value.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns the hash code for this MongoGridFSFileInfo object.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveTo
Moves the most recent version of a GridFS file.
Public methodOpen(FileMode)
Opens a GridFS file with the specified mode.
Public methodOpen(FileMode, FileAccess)
Opens a GridFS file with the specified mode and access.
Public methodOpenRead
Opens an existing GridFS file for reading.
Public methodOpenText
Opens an existing UTF-8 encoded text GridFS file for reading.
Public methodOpenWrite
Opens an existing GridFS file for writing.
Public methodRefresh
Refreshes the GridFS file info from the server.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether two specified MongoGridFSFileInfo objects have the same value.
Public operatorStatic memberInequality
Determines whether two specified MongoGridFSFileInfo objects have different values.
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also