The MongoServerSettings type exposes the following members.

  Name Description
MongoServerSettings Members MongoServerSettings()()()()
Creates a new instance of MongoServerSettings. Usually you would use a connection string instead.
MongoServerSettings Members MongoServerSettings(ConnectionMode, TimeSpan, MongoCredentials, GuidRepresentation, Boolean, TimeSpan, TimeSpan, Int32, Int32, String, SafeMode, IEnumerable<(Of <<'(MongoServerAddress>)>>), Boolean, TimeSpan, Int32, TimeSpan)
Creates a new instance of MongoServerSettings. Usually you would use a connection string instead.

Methods

  Name Description
MongoServerSettings Members Clone
Creates a clone of the settings.
MongoServerSettings Members Equals
Compares two MongoServerSettings instances.
(Overrides Object..::..Equals(Object).)
MongoServerSettings Members Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
MongoServerSettings Members Freeze
Freezes the settings to prevent any further changes to them.
MongoServerSettings Members GetHashCode
Gets the hash code.
(Overrides Object..::..GetHashCode()()()().)
MongoServerSettings Members GetType
Gets the Type of the current instance.
(Inherited from Object.)
MongoServerSettings Members MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
MongoServerSettings Members ToString
Returns a string representation of the settings.
(Overrides Object..::..ToString()()()().)

Extension Methods

  Name Description
MongoServerSettings Members ToBson(Type) Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
MongoServerSettings Members ToBson(Type, IBsonSerializationOptions) Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
MongoServerSettings Members ToBson(Type, BsonBinaryWriterSettings) Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
MongoServerSettings Members ToBson(Type, IBsonSerializationOptions, BsonBinaryWriterSettings) Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
MongoServerSettings Members ToBsonDocument(Type) Overloaded.
Converts an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
MongoServerSettings Members ToBsonDocument(Type, IBsonSerializationOptions) Overloaded.
Converts an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
MongoServerSettings Members ToJson(Type) Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
MongoServerSettings Members ToJson(Type, IBsonSerializationOptions) Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
MongoServerSettings Members ToJson(Type, JsonWriterSettings) Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
MongoServerSettings Members ToJson(Type, IBsonSerializationOptions, JsonWriterSettings) Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)

Properties

  Name Description
MongoServerSettings Members AddressFamily
Gets the AddressFamily for the IPEndPoint (derived from the IPv6 setting).
MongoServerSettings Members ConnectionMode
Gets or sets the connection mode.
MongoServerSettings Members ConnectTimeout
Gets or sets the connect timeout.
MongoServerSettings Members DefaultCredentials
Gets or sets the default credentials.
MongoServerSettings Members GuidRepresentation
Gets or sets the representation to use for Guids.
MongoServerSettings Members IPv6
Gets or sets whether to use IPv6.
MongoServerSettings Members IsFrozen
Gets whether the settings have been frozen to prevent further changes.
MongoServerSettings Members MaxConnectionIdleTime
Gets or sets the max connection idle time.
MongoServerSettings Members MaxConnectionLifeTime
Gets or sets the max connection life time.
MongoServerSettings Members MaxConnectionPoolSize
Gets or sets the max connection pool size.
MongoServerSettings Members MinConnectionPoolSize
Gets or sets the min connection pool size.
MongoServerSettings Members ReplicaSetName
Gets or sets the name of the replica set.
MongoServerSettings Members SafeMode
Gets or sets the SafeMode to use.
MongoServerSettings Members Server
Gets or sets the address of the server (see also Servers if using more than one address).
MongoServerSettings Members Servers
Gets or sets the list of server addresses (see also Server if using only one address).
MongoServerSettings Members SlaveOk
Gets or sets whether queries should be sent to secondary servers.
MongoServerSettings Members SocketTimeout
Gets or sets the socket timeout.
MongoServerSettings Members WaitQueueSize
Gets or sets the wait queue size.
MongoServerSettings Members WaitQueueTimeout
Gets or sets the wait queue timeout.

See Also

相关文章: