Table of Contents

Class ServerDescriptionChangedEventArgs

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

Represents the arguments to the event that occurs when the server description changes.

public class ServerDescriptionChangedEventArgs : EventArgs
Inheritance
ServerDescriptionChangedEventArgs
Inherited Members

Constructors

ServerDescriptionChangedEventArgs(ServerDescription, ServerDescription)

Initializes a new instance of the ServerDescriptionChangedEventArgs class.

public ServerDescriptionChangedEventArgs(ServerDescription oldServerDescription, ServerDescription newServerDescription)

Parameters

oldServerDescription ServerDescription

The old server description.

newServerDescription ServerDescription

The new server description.

Properties

NewServerDescription

Gets the new server description.

public ServerDescription NewServerDescription { get; }

Property Value

ServerDescription

The new server description.

OldServerDescription

Gets the old server description.

public ServerDescription OldServerDescription { get; }

Property Value

ServerDescription

The old server description.