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. Ubuntu下制作系统启动盘

    制作系统U盘: $ sudo umount /dev/sdc1 $ -desktop-amd64.iso of=/dev/sdc + records in + records out bytes (1 ...

  2. python中多线程

    多线程 什么是多线程 开启线程的两种方式 进程和线程的区别 Thread对象的其他属性和方法 守护线程 死锁现象与递归锁 信号量.Event定时器 线程Queue 进程池和线程池 什么是多线程 在传统 ...

  3. ImageNet 历届冠军最新评析:哪个深度学习模型最适合你?

    原文链接: https://mp.weixin.qq.com/s/I5XgYrPCCGyfV2qTI0sJhQ 深度神经网络自出现以来,已经成为计算机视觉领域一项举足轻重的技术.其中,ImageNet ...

  4. Yii用AJAX注册验证

    <script type="text/javascript"> $(document).ready(function(){ $('#RegisterForm_usern ...

  5. BZOJ2140: 稳定婚姻(tarjan解决稳定婚姻问题)

    2140: 稳定婚姻 Time Limit: 2 Sec  Memory Limit: 259 MBSubmit: 1321  Solved: 652[Submit][Status][Discuss] ...

  6. Nginx获取自定义头部header的值

    http://blog.csdn.net/xbynet/article/details/51899286?_t=t http://shift-alt-ctrl.iteye.com/blog/23314 ...

  7. 【python】python实例集<二>

    ##扫描某个ip的端口号 # #-*- coding: utf-8 -*- # import socket # def main(): # sk = socket.socket(socket.AF_I ...

  8. emacs之配置yasnippet

    ~/emacsConfig/auto-complete-yasnippet-setting.el (require 'yasnippet) (setq ac-sources (append '(ac- ...

  9. 黄聪:sqlserver 2008修改数据库表的时候错误提示“阻止保存要求重新创建表的更改”

    当用户在在SQL Server 2008企业管理器中更改表结构时,必须要先删除原来的表, 然后重新创建新表,才能完成表的更改,如果强行更改会出现以下提示:不允许保存更改 .您所做的更改要求删除并重新创 ...

  10. 黄聪:利用iframe实现ajax 跨域通信的解决方案(转)

    原文:http://www.cnblogs.com/xueming/archive/2013/02/01/crossdomainajax.html 在漫长的前端开发旅途上,无可避免的会接触到ajax, ...