The MongoServerSettings type exposes the following members.

Constructors

  Name Description
MongoServerSettings()()()()
Creates a new instance of MongoServerSettings. Usually you would use a connection string instead.
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
Clone
Creates a clone of the settings.
Equals
Compares two MongoServerSettings instances.

(Overrides Object..::..Equals(Object).)

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.)

Freeze
Freezes the settings to prevent any further changes to them.
GetHashCode
Gets the hash code.

(Overrides Object..::..GetHashCode()()()().)

GetType
Gets the Type of the current instance.

(Inherited from Object.)

MemberwiseClone
Creates a shallow copy of the current Object.

(Inherited from Object.)

ToString
Returns a string representation of the settings.

(Overrides Object..::..ToString()()()().)

Extension Methods

  Name Description
ToBson(Type) Overloaded.

Converts an object to a BSON document byte array.

(Defined by BsonExtensionMethods.)

ToBson(Type, IBsonSerializationOptions) Overloaded.

Converts an object to a BSON document byte array.

(Defined by BsonExtensionMethods.)

ToBson(Type, BsonBinaryWriterSettings) Overloaded.

Converts an object to a BSON document byte array.

(Defined by BsonExtensionMethods.)

ToBson(Type, IBsonSerializationOptions, BsonBinaryWriterSettings) Overloaded.

Converts an object to a BSON document byte array.

(Defined by BsonExtensionMethods.)

ToBsonDocument(Type) Overloaded.

Converts an object to a BsonDocument.

(Defined by BsonExtensionMethods.)

ToBsonDocument(Type, IBsonSerializationOptions) Overloaded.

Converts an object to a BsonDocument.

(Defined by BsonExtensionMethods.)

ToJson(Type) Overloaded.

Converts an object to a JSON string.

(Defined by BsonExtensionMethods.)

ToJson(Type, IBsonSerializationOptions) Overloaded.

Converts an object to a JSON string.

(Defined by BsonExtensionMethods.)

ToJson(Type, JsonWriterSettings) Overloaded.

Converts an object to a JSON string.

(Defined by BsonExtensionMethods.)

ToJson(Type, IBsonSerializationOptions, JsonWriterSettings) Overloaded.

Converts an object to a JSON string.

(Defined by BsonExtensionMethods.)

Properties

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

See Also

MongoServerSettings Members的更多相关文章

  1. AutoMapper:Unmapped members were found. Review the types and members below. Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type

    异常处理汇总-后端系列 http://www.cnblogs.com/dunitian/p/4523006.html 应用场景:ViewModel==>Mode映射的时候出错 AutoMappe ...

  2. [XAF] How to define a business class at runtime or allow end-users to configure its members via the application UI?

    How to define a business class at runtime or allow end-users to configure its members via the applic ...

  3. JavaScript Patterns 5.6 Static Members

    Public Static Members // constructor var Gadget = function (price) { this.price = price; }; // a sta ...

  4. Effective Java 13 Minimize the accessibility of classes and members

    Information hiding is important for many reasons, most of which stem from the fact that it decouples ...

  5. C++类设计2(Class with pointer members)

    二 Class with pointer members(Class String) 1. 测试代码(使用效果) int main() { String s1(), String s2("h ...

  6. 【转载】#303 - Accessibility of Class Members

    Members of a class can have different kinds of accessibility. An accessibility keyword indicates wha ...

  7. Static Classes and Static Class Members

    Static Classes and Static Class Members A static class is basically the same as a non-static class, ...

  8. Private Members in JavaScript

    Private Members in JavaScript Douglas Crockford www.crockford.com JavaScript is the world's most mis ...

  9. (转) Special members

    原地址:http://www.cplusplus.com/doc/tutorial/classes2/   Special members [NOTE: This chapter requires p ...

随机推荐

  1. Unable to connect to any of the specified MySQL hosts.

    c#连接Mysql数据建立连接时提示:Unable to connect to any of the specified MySQL hosts. 出现此错误的原因是Server(数据库服务器IP地址 ...

  2. HDU 2175

    http://acm.hdu.edu.cn/showproblem.php?pid=2175 做得好辛苦的一道规律题,至于为什么辛苦..dont ask me why... n号盘子出现的位置是(1, ...

  3. Jmeter-Critical Section Controller(临界区控制器)

    The Critical Section Controller ensures that its children elements (samplers/controllers, etc.) will ...

  4. 基于zookeeper简单实现分布式锁

    https://blog.csdn.net/desilting/article/details/41280869 这里利用zookeeper的EPHEMERAL_SEQUENTIAL类型节点及watc ...

  5. LG2831 愤怒的小鸟

    题意 分析 看n的范围只有18,考虑状压dp. 用\(f(s)\)表示过集合s中的点所需最小的抛物线数量. 然后枚举点对算抛物线,判断其他点是否在抛物线上来转移. 细节 判断能否构成抛物线只需要判断斜 ...

  6. java System.arrayCopy使用说明

    java System.arrayCopy使用说明 java.lang.System.arraycopy() 方法复制指定的源数组的数组,在指定的位置开始,到目标数组的指定位置. 下面是 System ...

  7. load/domContentLoaded事件、异步/延迟Js 与DOM解析

    一.DOMContentLoaded 与 load事件 关于load和DOMContentLoaded事件,mdn对于它们是这样描述的: DOMContentLoaded mdn文档地址:https: ...

  8. 02 - Unit02:登录功能

    需求实现步骤 发送Ajax请求 服务器处理 Ajax回调处理 登录功能 发送Ajax请求 绑定事件:"登录"按钮的单击事件 获取参数:用户名userName和密码password ...

  9. bzoj 3879: SvT

    Description (我并不想告诉你题目名字是什么鬼) 有一个长度为n的仅包含小写字母的字符串S,下标范围为[1,n]. 现在有若干组询问,对于每一个询问,我们给出若干个后缀(以其在S中出现的起始 ...

  10. Linux C 一些函数 所属的头文件

    在编写程序时,有时总是不记得所使用的函数在哪个库函数中.现在先把自己以前经常用到的函数头文件总结一下. 有不对的地方还请指教. 1,系统调用文件的操作函数 #inlclude <fcntl.h& ...