Table of Contents

Class ProductKey

Namespace
Dynamicweb.Ecommerce.Products
Assembly
Dynamicweb.Ecommerce.dll
The product key
[Serializable]
public sealed class ProductKey : IEquatable<ProductKey>
Inheritance
ProductKey
Implements
Inherited Members

Constructors

ProductKey(Product)

public ProductKey(Product product)

Parameters

product Product

ProductKey(string, string, string)

public ProductKey(string productId, string languageId, string variantId)

Parameters

productId string
languageId string
variantId string

Properties

LanguageId

The language identifier.
public string LanguageId { get; }

Property Value

string

ProductId

The product identifier.
public string ProductId { get; }

Property Value

string

VariantId

The variant identifier.
public string VariantId { get; }

Property Value

string

Methods

Equals(ProductKey)

Determines whether the specified ProductKey is equal to this instance.
public bool Equals(ProductKey other)

Parameters

other ProductKey
The ProductKey to compare with this instance.

Returns

bool
true if the specified ProductKey is equal to this instance; otherwise, false.

Equals(object)

Determines whether the specified object is equal to this instance.
public override bool Equals(object other)

Parameters

other object
The object to compare with this instance.

Returns

bool
true if the specified object is equal to this instance; otherwise, false.

GetHashCode()

Returns a hash code for this instance.
public override int GetHashCode()

Returns

int
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

ToString()

Returns a string representation of this instance.
public override string ToString()

Returns

string
To top