ServerDescription Constructor |
Namespace: MongoDB.Driver.Core.ServersAssembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.3.0
Syntaxpublic ServerDescription(
ServerId serverId,
EndPoint endPoint,
Optional<TimeSpan> averageRoundTripTime = null,
Optional<EndPoint> canonicalEndPoint = null,
Optional<ElectionId> electionId = null,
Optional<Exception> heartbeatException = null,
Optional<int> maxBatchCount = null,
Optional<int> maxDocumentSize = null,
Optional<int> maxMessageSize = null,
Optional<int> maxWireDocumentSize = null,
Optional<ReplicaSetConfig> replicaSetConfig = null,
Optional<ServerState> state = null,
Optional<TagSet> tags = null,
Optional<ServerType> type = null,
Optional<SemanticVersion> version = null,
Optional<Range<int>> wireVersionRange = null
)
Public Sub New (
serverId As ServerId,
endPoint As EndPoint,
Optional averageRoundTripTime As Optional(Of TimeSpan) = Nothing,
Optional canonicalEndPoint As Optional(Of EndPoint) = Nothing,
Optional electionId As Optional(Of ElectionId) = Nothing,
Optional heartbeatException As Optional(Of Exception) = Nothing,
Optional maxBatchCount As Optional(Of Integer) = Nothing,
Optional maxDocumentSize As Optional(Of Integer) = Nothing,
Optional maxMessageSize As Optional(Of Integer) = Nothing,
Optional maxWireDocumentSize As Optional(Of Integer) = Nothing,
Optional replicaSetConfig As Optional(Of ReplicaSetConfig) = Nothing,
Optional state As Optional(Of ServerState) = Nothing,
Optional tags As Optional(Of TagSet) = Nothing,
Optional type As Optional(Of ServerType) = Nothing,
Optional version As Optional(Of SemanticVersion) = Nothing,
Optional wireVersionRange As Optional(Of Range(Of Integer)) = Nothing
)
new :
serverId : ServerId *
endPoint : EndPoint *
?averageRoundTripTime : Optional<TimeSpan> *
?canonicalEndPoint : Optional<EndPoint> *
?electionId : Optional<ElectionId> *
?heartbeatException : Optional<Exception> *
?maxBatchCount : Optional<int> *
?maxDocumentSize : Optional<int> *
?maxMessageSize : Optional<int> *
?maxWireDocumentSize : Optional<int> *
?replicaSetConfig : Optional<ReplicaSetConfig> *
?state : Optional<ServerState> *
?tags : Optional<TagSet> *
?type : Optional<ServerType> *
?version : Optional<SemanticVersion> *
?wireVersionRange : Optional<Range<int>>
(* Defaults:
let _averageRoundTripTime = defaultArg averageRoundTripTime null
let _canonicalEndPoint = defaultArg canonicalEndPoint null
let _electionId = defaultArg electionId null
let _heartbeatException = defaultArg heartbeatException null
let _maxBatchCount = defaultArg maxBatchCount null
let _maxDocumentSize = defaultArg maxDocumentSize null
let _maxMessageSize = defaultArg maxMessageSize null
let _maxWireDocumentSize = defaultArg maxWireDocumentSize null
let _replicaSetConfig = defaultArg replicaSetConfig null
let _state = defaultArg state null
let _tags = defaultArg tags null
let _type = defaultArg type null
let _version = defaultArg version null
let _wireVersionRange = defaultArg wireVersionRange null
*)
-> ServerDescription
Parameters
- serverId
- Type: MongoDB.Driver.Core.ServersServerId
The server identifier. - endPoint
- Type: System.NetEndPoint
The end point. - averageRoundTripTime (Optional)
- Type: MongoDB.DriverOptionalTimeSpan
The average round trip time. - canonicalEndPoint (Optional)
- Type: MongoDB.DriverOptionalEndPoint
The canonical end point. - electionId (Optional)
- Type: MongoDB.DriverOptionalElectionId
The election identifier. - heartbeatException (Optional)
- Type: MongoDB.DriverOptionalException
The heartbeat exception. - maxBatchCount (Optional)
- Type: MongoDB.DriverOptionalInt32
The maximum batch count. - maxDocumentSize (Optional)
- Type: MongoDB.DriverOptionalInt32
The maximum size of a document. - maxMessageSize (Optional)
- Type: MongoDB.DriverOptionalInt32
The maximum size of a message. - maxWireDocumentSize (Optional)
- Type: MongoDB.DriverOptionalInt32
The maximum size of a wire document. - replicaSetConfig (Optional)
- Type: MongoDB.DriverOptionalReplicaSetConfig
The replica set configuration. - state (Optional)
- Type: MongoDB.DriverOptionalServerState
The server state. - tags (Optional)
- Type: MongoDB.DriverOptionalTagSet
The replica set tags. - type (Optional)
- Type: MongoDB.DriverOptionalServerType
The server type. - version (Optional)
- Type: MongoDB.DriverOptionalSemanticVersion
The server version. - wireVersionRange (Optional)
- Type: MongoDB.DriverOptionalRangeInt32
The wire version range.
Exceptions
See Also