The MongoServerSettings type exposes the following members.
Constructors
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
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
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
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
See Also
1064

被折叠的 条评论
为什么被折叠?



