Table of Contents

Class Tag

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

Represents a replica set member tag.

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

Constructors

Tag(string, string)

Initializes a new instance of the Tag class.

public Tag(string name, string value)

Parameters

name string

The name.

value string

The value.

Properties

Name

Gets the name.

public string Name { get; }

Property Value

string

The name.

Value

Gets the value.

public string Value { get; }

Property Value

string

The value.

Methods

Equals(Tag)

public bool Equals(Tag other)

Parameters

other Tag

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