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.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
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 Obsolete.
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(MongoGridFSSettings)
Compares this MongoGridFSSettings to another one.
Public methodEquals(Object)
Compares this MongoGridFSSettings to another object.
(Overrides ObjectEquals(Object).)
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 methodFreeze
Freezes the settings.
Public methodFrozenCopy
Returns a frozen copy of the settings.
Public methodGetHashCode
Gets the hash code.
(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 methodToString
Returns a string that represents the current object.
(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