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
tagsIEnumerable<Tag>The tags.
Properties
IsEmpty
Gets a value indicating whether the tag set is empty.
public bool IsEmpty { get; }
Property Value
- bool
trueif 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
requiredTagSetThe required tags.
Returns
- bool
True if the tag set contains all of the required tags.
Equals(TagSet)
public bool Equals(TagSet other)
Parameters
otherTagSet
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()