Click or drag to resize

MongoGridFSSettings Class

Represents setting for GridFS.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.GridFSMongoGridFSSettings

Namespace:  MongoDB.Driver.GridFS
Assembly:  MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
Syntax
[SerializableAttribute]
public class MongoGridFSSettings : IEquatable<MongoGridFSSettings>

The MongoGridFSSettings type exposes the following members.

Constructors
  NameDescription
Public methodMongoGridFSSettings
Initializes a new instance of the MongoGridFSSettings class.
Public methodMongoGridFSSettings(MongoDatabase) Obsolete.
Initializes a new instance of the MongoGridFSSettings class.
Public methodMongoGridFSSettings(Int32, String, WriteConcern) Obsolete.
Initializes a new instance of the MongoGridFSSettings class.
Top
Properties
  NameDescription
Public propertyChunksCollectionName Obsolete.
Gets the chunks collection name.
Public propertyChunkSize
Gets or sets the chunk size.
Public propertyStatic memberDefaults
Gets or sets the default GridFS settings.
Public propertyFilesCollectionName Obsolete.
Gets the files collection name.
Public propertyGuidRepresentation
Gets or sets the GuidRepresentation.
Public propertyIsFrozen
Gets a value indicating whether the settings are frozen.
Public propertyReadEncoding
Gets or sets the read encoding.
Public propertyReadPreference
Gets or sets the ReadPreference.
Public propertyRoot
Gets or sets the root collection name (the files and chunks collection names are derived from the root).
Public propertyUpdateMD5
Gets or sets a value indicating whether to udpate the MD5 hash on the server when a file is uploaded or modified.
Public propertyVerifyMD5
Gets or sets a value indicating whether to verify the MD5 hash when a file is uploaded or downloaded.
Public propertyWriteConcern
Gets or sets the WriteConcern.
Public propertyWriteEncoding
Gets or sets the write encoding.
Top
Methods
  NameDescription
Public methodClone
Creates a clone of the settings.
Public methodEquals(Object)
Compares this MongoGridFSSettings to another object.
(Overrides ObjectEquals(Object).)
Public methodEquals(MongoGridFSSettings)
Compares this MongoGridFSSettings to another one.
Protected methodFinalize (Inherited from Object.)
Public methodFreeze
Freezes the settings.
Public methodFrozenCopy
Returns a frozen copy of the settings.
Public methodGetHashCode
Gets the hash code.
(Overrides ObjectGetHashCode.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two MongoGridFSSettings.
Public operatorStatic memberInequality
Compares two MongoGridFSSettings.
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