MongoServerSettings Members

The MongoServerSettings type exposes the following members.

Collapse imageConstructors

 NameDescription
Public method
MongoServerSettings()()()()
Creates a new instance of MongoServerSettings. Usually you would use a connection string instead.
Public method
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.

Collapse imageMethods

 NameDescription
Public method
Clone
Creates a clone of the settings.
Public method
Equals
Compares two MongoServerSettings instances.
(Overrides Object..::..Equals(Object).)
Protected method
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.)
Public method
Freeze
Freezes the settings to prevent any further changes to them.
Public method
GetHashCode
Gets the hash code.
(Overrides Object..::..GetHashCode()()()().)
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method
ToString
Returns a string representation of the settings.
(Overrides Object..::..ToString()()()().)

Collapse imageExtension Methods

 NameDescription
Public Extension Method
ToBson(Type)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension Method
ToBson(Type, IBsonSerializationOptions)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension Method
ToBson(Type, BsonBinaryWriterSettings)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension Method
ToBson(Type, IBsonSerializationOptions, BsonBinaryWriterSettings)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension Method
ToBsonDocument(Type)Overloaded.
Converts an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension Method
ToBsonDocument(Type, IBsonSerializationOptions)Overloaded.
Converts an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension Method
ToJson(Type)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
Public Extension Method
ToJson(Type, IBsonSerializationOptions)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
Public Extension Method
ToJson(Type, JsonWriterSettings)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
Public Extension Method
ToJson(Type, IBsonSerializationOptions, JsonWriterSettings)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)

Collapse imageProperties

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

Collapse imageSee Also

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

微笑点燃希望

你的鼓励是我创作最大的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值