Class TagSet
Represents a replica set member tag set.
public sealed class TagSet : IEquatable<TagSet>
- Inheritance
-
TagSet
- Implements
- Inherited Members
Constructors
TagSet()
Initializes a new instance of the TagSet class.
public TagSet()
TagSet(IEnumerable<Tag>)
Initializes a new instance of the TagSet class.
public TagSet(IEnumerable<Tag> tags)
Parameters
tags
IEnumerable<Tag>The tags.
Properties
IsEmpty
Gets a value indicating whether the tag set is empty.
public bool IsEmpty { get; }
Property Value
- bool
true
if the tag set is empty; otherwise,false
.
Tags
Gets the tags.
public IReadOnlyList<Tag> Tags { get; }
Property Value
- IReadOnlyList<Tag>
The tags.
Methods
ContainsAll(TagSet)
Determines whether the tag set contains all of the required tags.
public bool ContainsAll(TagSet required)
Parameters
required
TagSetThe required tags.
Returns
- bool
True if the tag set contains all of the required tags.
Equals(TagSet)
public bool Equals(TagSet other)
Parameters
other
TagSet
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()