Table of Contents

Class ServerId

Namespace
MongoDB.Driver.Core.Servers
Assembly
MongoDB.Driver.Core.dll

Represents a server identifier.

[Serializable]
public sealed class ServerId : IEquatable<ServerId>, ISerializable
Inheritance
ServerId
Implements
Inherited Members

Constructors

ServerId(ClusterId, EndPoint)

Initializes a new instance of the ServerId class.

public ServerId(ClusterId clusterId, EndPoint endPoint)

Parameters

clusterId ClusterId

The cluster identifier.

endPoint EndPoint

The end point.

Properties

ClusterId

Gets the cluster identifier.

public ClusterId ClusterId { get; }

Property Value

ClusterId

The cluster identifier.

EndPoint

Gets the end point.

public EndPoint EndPoint { get; }

Property Value

EndPoint

The end point.

Methods

Equals(ServerId)

public bool Equals(ServerId other)

Parameters

other ServerId

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string