Table of Contents

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

groupRelation GroupRelation

The GroupRelation instance.

Exceptions

ArgumentNullException

Thrown if groupRelation is null.

ArgumentException

Thrown if Id or ParentId properties of groupRelation are null or empty.

GroupRelationKey(string, string)

Initializes a new instance of the class

public GroupRelationKey(string groupId, string parentId)

Parameters

groupId string

The id of the group

parentId string

The id of the parent group

Exceptions

ArgumentNullException

Thrown if groupId or parentId is null.

ArgumentException

Thrown if groupId or parentId is empty.

Properties

GroupId

Gets or sets the id of the group

public string GroupId { get; }

Property Value

string

ParentId

Gets or sets the id of the group

public string ParentId { get; }

Property Value

string

Methods

Equals(GroupRelationKey?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(GroupRelationKey? other)

Parameters

other GroupRelationKey

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

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

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

To top