| MongoGridFS Methods | 
The MongoGridFS type exposes the following members.
 Methods
Methods| Name | Description | |
|---|---|---|
|  | AppendText | 
            Appends UTF-8 encoded text to an existing GridFS file.
             | 
|  | CopyTo(String, String) | 
            Copies a GridFS file.
             | 
|  | CopyTo(String, String, MongoGridFSCreateOptions) | 
            Copies a GridFS file.
             | 
|  | Create(String) | 
            Creates or overwrites a GridFS file.
             | 
|  | Create(String, MongoGridFSCreateOptions) | 
            Creates or overwrites a GridFS file.
             | 
|  | CreateText(String) | 
            Creates or opens a GridFS file for writing UTF-8 encoded text.
             | 
|  | CreateText(String, MongoGridFSCreateOptions) | 
            Creates or opens a GridFS file for writing UTF-8 encoded text.
             | 
|  | Delete(String) | 
            Deletes all versions of a GridFS file.
             | 
|  | Delete(IMongoQuery) | 
            Deletes GridFS files.
             | 
|  | DeleteById | 
            Deletes a GridFS file.
             | 
|  | Download(String) | 
            Downloads the most recent version of a GridFS file.
             | 
|  | Download(Stream, MongoGridFSFileInfo) | 
            Downloads a GridFS file.
             | 
|  | Download(Stream, IMongoQuery) | 
            Downloads the most recent version of a GridFS file.
             | 
|  | Download(Stream, String) | 
            Downloads the most recent version of a GridFS file.
             | 
|  | Download(String, MongoGridFSFileInfo) | 
            Downloads a GridFS file.
             | 
|  | Download(String, IMongoQuery) | 
            Downloads the most recent version of a GridFS file.
             | 
|  | Download(String, Int32) | 
            Downloads a specific version of a GridFS file.
             | 
|  | Download(String, String) | 
            Downloads the most recent version of a GridFS file.
             | 
|  | Download(Stream, IMongoQuery, Int32) | 
            Downloads a specific version of a GridFS file.
             | 
|  | Download(Stream, String, Int32) | 
            Downloads a specific version of a GridFS file.
             | 
|  | Download(String, IMongoQuery, Int32) | 
            Downloads a specific version of a GridFS file.
             | 
|  | Download(String, String, Int32) | 
            Downloads a specific version of a GridFS file.
             | 
|  | EnsureIndexes | 
            Ensures that the proper indexes for GridFS exist (only creates the new indexes if there are fewer than 1000 GridFS files).
             | 
|  | EnsureIndexes(Int32) | 
            Ensures that the proper indexes for GridFS exist.
             | 
|  | Equals | (Inherited from Object.) | 
|  | Exists(String) | 
            Tests whether a GridFS file exists.
             | 
|  | Exists(IMongoQuery) | 
            Tests whether a GridFS file exists.
             | 
|  | ExistsById | 
            Tests whether a GridFS file exists.
             | 
|  | Finalize | (Inherited from Object.) | 
|  | Find(String) | 
            Finds matching GridFS files.
             | 
|  | Find(IMongoQuery) | 
            Finds matching GridFS files.
             | 
|  | FindAll | 
            Finds all GridFS files.
             | 
|  | FindOne(String) | 
            Finds the most recent version of a GridFS file.
             | 
|  | FindOne(IMongoQuery) | 
            Finds the most recent version of a GridFS file.
             | 
|  | FindOne(String, Int32) | 
            Finds a specific version of a GridFS file.
             | 
|  | FindOne(IMongoQuery, Int32) | 
            Finds a specific version of a GridFS file.
             | 
|  | FindOneById | 
            Finds a GridFS file.
             | 
|  | GetHashCode | (Inherited from Object.) | 
|  | GetType | (Inherited from Object.) | 
|  | MemberwiseClone | (Inherited from Object.) | 
|  | MoveTo | 
            Moves the most recent version of a GridFS file.
             | 
|  | Open(String, FileMode) | 
            Opens a GridFS file with the specified mode.
             | 
|  | Open(String, FileMode, FileAccess) | 
            Opens a GridFS file with the specified mode and access.
             | 
|  | Open(String, FileMode, FileAccess, MongoGridFSCreateOptions) | 
            Opens a GridFS file with the specified mode, access and create options.
             | 
|  | OpenRead | 
            Opens an existing GridFS file for reading.
             | 
|  | OpenText | 
            Opens an existing UTF-8 encoded text GridFS file for reading.
             | 
|  | OpenWrite(String) | 
            Opens an existing GridFS file for writing.
             | 
|  | OpenWrite(String, MongoGridFSCreateOptions) | 
            Opens an existing GridFS file for writing.
             | 
|  | SetAliases | 
            Sets the aliases for an existing GridFS file.
             | 
|  | SetContentType | 
            Sets the content type for an existing GridFS file.
             | 
|  | SetMetadata | 
            Sets the metadata for an existing GridFS file.
             | 
|  | ToString | (Inherited from Object.) | 
|  | Upload(String) | 
            Uploads a GridFS file.
             | 
|  | Upload(Stream, String) | 
            Uploads a GridFS file.
             | 
|  | Upload(String, String) | 
            Uploads a GridFS file.
             | 
|  | Upload(Stream, String, MongoGridFSCreateOptions) | 
            Uploads a GridFS file.
             | 
 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