| MongoGridFSFileInfo Class | 
 Inheritance Hierarchy
Inheritance HierarchyNamespace: MongoDB.Driver.GridFS
 Syntax
SyntaxThe MongoGridFSFileInfo type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | MongoGridFSFileInfo(MongoGridFS, String) | Obsolete. 
            Initializes a new instance of the GridFSFileInfo class.
             | 
|  | MongoGridFSFileInfo(MongoGridFS, String, MongoGridFSCreateOptions) | Obsolete. 
            Initializes a new instance of the GridFSFileInfo class.
             | 
|  | MongoGridFSFileInfo(MongoGridFS, String, Int32) | Obsolete. 
            Initializes a new instance of the GridFSFileInfo class.
             | 
|  | MongoGridFSFileInfo(MongoServer, MongoServerInstance, String, MongoGridFSSettings, BsonDocument) | 
            Initializes a new instance of the MongoGridFSFileInfo class.
             | 
|  | MongoGridFSFileInfo(MongoServer, MongoServerInstance, String, MongoGridFSSettings, String) | 
            Initializes a new instance of the MongoGridFSFileInfo class.
             | 
|  | MongoGridFSFileInfo(MongoServer, MongoServerInstance, String, MongoGridFSSettings, String, MongoGridFSCreateOptions) | 
            Initializes a new instance of the MongoGridFSFileInfo class.
             | 
 Properties
Properties| Name | Description | |
|---|---|---|
|  | Aliases | 
            Gets the aliases.
             | 
|  | ChunkSize | 
            Gets the chunk size.
             | 
|  | ContentType | 
            Gets the content type.
             | 
|  | DatabaseName | 
            Gets the database name.
             | 
|  | Exists | 
            Gets a value indicating whether the GridFS file exists.
             | 
|  | GridFS | 
            Gets the GridFS file system that contains this GridFS file.
             | 
|  | GridFSSettings | 
            Gets the GridFS settings.
             | 
|  | Id | 
            Gets the GridFS file Id.
             | 
|  | Length | 
            Gets the file lenth.
             | 
|  | MD5 | 
            Gets the MD5 hash of the file contents.
             | 
|  | Metadata | 
            Gets the metadata.
             | 
|  | Name | 
            Gets the remote file name.
             | 
|  | Server | 
            Gets the server.
             | 
|  | ServerInstance | 
            Gets the server instance;
             | 
|  | UploadDate | 
            Gets the upload date.
             | 
 Methods
Methods| Name | Description | |
|---|---|---|
|  | AppendText | 
            Appends UTF-8 encoded text to an existing GridFS file.
             | 
|  | CopyTo(String) | 
            Copies a GridFS file.
             | 
|  | CopyTo(String, MongoGridFSCreateOptions) | 
            Copies a GridFS file.
             | 
|  | Create | 
            Creates or overwrites a GridFS file.
             | 
|  | CreateText | 
            Creates or opens a GridFS file for writing UTF-8 encoded text.
             | 
|  | Delete | 
            Deletes a GridFS file.
             | 
|  | Equals(Object) | 
            Determines whether this instance and a specified object, which must also be a MongoGridFSFileInfo object, have the same value.
            (Overrides ObjectEquals(Object).) | 
|  | Equals(MongoGridFSFileInfo) | 
            Determines whether this instance and another specified MongoGridFSFileInfo object have the same value.
             | 
|   | Equals(MongoGridFSFileInfo, MongoGridFSFileInfo) | 
            Determines whether two specified MongoGridFSFileInfo objects have the same value.
             | 
|  | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) | 
|  | GetHashCode | 
            Returns the hash code for this MongoGridFSFileInfo object.
            (Overrides ObjectGetHashCode.) | 
|  | GetType | Gets the Type of the current instance.(Inherited from Object.) | 
|  | MemberwiseClone | Creates a shallow copy of the current Object.(Inherited from Object.) | 
|  | MoveTo | 
            Moves the most recent version of a GridFS file.
             | 
|  | Open(FileMode) | 
            Opens a GridFS file with the specified mode.
             | 
|  | Open(FileMode, FileAccess) | 
            Opens a GridFS file with the specified mode and access.
             | 
|  | OpenRead | 
            Opens an existing GridFS file for reading.
             | 
|  | OpenText | 
            Opens an existing UTF-8 encoded text GridFS file for reading.
             | 
|  | OpenWrite | 
            Opens an existing GridFS file for writing.
             | 
|  | Refresh | 
            Refreshes the GridFS file info from the server.
             | 
|  | ToString | Returns a string that represents the current object.(Inherited from Object.) | 
 Operators
Operators| Name | Description | |
|---|---|---|
|   | Equality | 
            Determines whether two specified MongoGridFSFileInfo objects have the same value.
             | 
|   | Inequality | 
            Determines whether two specified MongoGridFSFileInfo objects have different values.
             | 
 Extension Methods
Extension Methods| Name | Description | |
|---|---|---|
|  | ToBson | 
            Serializes an object to a BSON byte array.
            (Defined by BsonExtensionMethods.) | 
|  | ToBsonDocument | 
            Serializes an object to a BsonDocument.
            (Defined by BsonExtensionMethods.) | 
|  | ToJson | 
            Serializes an object to a JSON string.
            (Defined by BsonExtensionMethods.) | 
 See Also
See Also