IClusterableServerInvalidate Method (String, TopologyVersion) |
Invalidates this instance (sets the server type to Unknown and clears the connection pool).
Namespace:
MongoDB.Driver.Core.Servers
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax void Invalidate(
string reasonInvalidated,
TopologyVersion responseTopologyVersion
)
Sub Invalidate (
reasonInvalidated As String,
responseTopologyVersion As TopologyVersion
)
abstract Invalidate :
reasonInvalidated : string *
responseTopologyVersion : TopologyVersion -> unit
Parameters
- reasonInvalidated
- Type: SystemString
The reason the instance was invalidated. - responseTopologyVersion
- Type: MongoDB.Driver.Core.ServersTopologyVersion
The topology of the version of the response that invalidated this instance.
See Also