Table of Contents

Class LibraryInfo

Namespace
MongoDB.Driver.Core.Configuration
Assembly
MongoDB.Driver.dll

Represents information about a library using the .NET driver.

public sealed class LibraryInfo : IEquatable<LibraryInfo>
Inheritance
LibraryInfo
Implements
Inherited Members

Constructors

LibraryInfo(string, string)

Initializes a new instance of the LibraryInfo class.

LibraryInfo(string, string, string)

Initializes a new instance of the LibraryInfo class.

Properties

Name

Gets the library name.

Platform

Gets the library platform. This is a free-form description of the runtime the library targets; it is appended to the platform information (for example, the .NET runtime description) reported in the connection handshake. It is not the operating system, which the handshake reports separately.

Version

Gets the library version.

Methods

Equals(LibraryInfo)

Determines whether the specified LibraryInfo is equal to this instance.

Equals(object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

ToString()

Returns a string that represents the current object.

Operators

operator ==(LibraryInfo, LibraryInfo)

Determines whether two LibraryInfo instances are equal.

operator !=(LibraryInfo, LibraryInfo)

Determines whether two LibraryInfo instances are not equal.