Class GroupRelationKey
- Namespace
- Dynamicweb.Ecommerce.Products
- Assembly
- Dynamicweb.Ecommerce.dll
Represents a unique key for a GroupRelation.
public sealed class GroupRelationKey : IEquatable<GroupRelationKey>
- Inheritance
-
GroupRelationKey
- Implements
- Inherited Members
Constructors
GroupRelationKey(GroupRelation)
Initializes a new instance of the class from an GroupRelation instance.
public GroupRelationKey(GroupRelation groupRelation)
Parameters
groupRelationGroupRelationThe GroupRelation instance.
Exceptions
- ArgumentNullException
Thrown if
groupRelationis null.- ArgumentException
Thrown if Id or ParentId properties of
groupRelationare null or empty.
GroupRelationKey(string, string)
Initializes a new instance of the class
public GroupRelationKey(string groupId, string parentId)
Parameters
Exceptions
- ArgumentNullException
Thrown if
groupIdorparentIdis null.- ArgumentException
Thrown if
groupIdorparentIdis empty.
Properties
GroupId
Gets or sets the id of the group
public string GroupId { get; }
Property Value
ParentId
Gets or sets the id of the group
public string ParentId { get; }
Property Value
Methods
Equals(GroupRelationKey?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(GroupRelationKey? other)
Parameters
otherGroupRelationKeyAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.