Platforms to show: All Mac Windows Linux Cross-Platform
Back to MongoGridFSFileMBS class.
MongoGridFSFileMBS.Aliases as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | MongoDB | MBS MongoDB Plugin | 25.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
You need to call Save() to persist this change.
(Read and Write property)
MongoGridFSFileMBS.ChunkSize as Int32
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | MongoDB | MBS MongoDB Plugin | 25.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
(Read only property)
MongoGridFSFileMBS.ContentType as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | MongoDB | MBS MongoDB Plugin | 25.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Sets the content type for the gridfs file. This should be something like "text/plain".
You need to call Save() to persist this change.
(Read and Write property)
MongoGridFSFileMBS.FileName as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | MongoDB | MBS MongoDB Plugin | 25.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
(Read and Write property)
MongoGridFSFileMBS.Handle as Integer
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | MongoDB | MBS MongoDB Plugin | 25.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
(Read only property)
MongoGridFSFileMBS.ID as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | MongoDB | MBS MongoDB Plugin | 25.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The C Driver always uses an ObjectId for _id, but files created by other drivers may have any type of _id.
Sets the id of file to any BSON type.
(Read and Write property)
MongoGridFSFileMBS.Length as Int64
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | MongoDB | MBS MongoDB Plugin | 25.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
(Read only property)
MongoGridFSFileMBS.MD5 as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | MongoDB | MBS MongoDB Plugin | 25.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
You need to call Save() to persist this change.
(Read and Write property)
MongoGridFSFileMBS.Metadata as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | MongoDB | MBS MongoDB Plugin | 25.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Sets the metadata associated with file.
You need to call Save() to persist this change.
(Read and Write property)
MongoGridFSFileMBS.Position as Int64
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | MongoDB | MBS MongoDB Plugin | 25.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Setting the position will seek within the file.
(Read and Write property)
MongoGridFSFileMBS.UploadDate as Int64
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | MongoDB | MBS MongoDB Plugin | 25.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
(Read only property)
Some examples using this property:
The items on this page are in the following plugins: MBS MongoDB Plugin.