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

posted on 2013-09-09 11:27  微笑点燃希望  阅读(1037)  评论(0编辑  收藏  举报
font=white