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
Properties
LanguageId
The language identifier.
public string LanguageId { get; }
Property Value
ProductId
The product identifier.
public string ProductId { get; }
Property Value
VariantId
The variant identifier.
public string VariantId { get; }
Property Value
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
Returns
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()