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
ProductKeyThe 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.
Parse(string)
public static ProductKey Parse(string productKey)
Parameters
productKey
string
Returns
ToString()
Returns a string representation of this instance.
public override string ToString()
Returns
TryParse(string, out ProductKey)
public static bool TryParse(string productKeyRaw, out ProductKey productKey)
Parameters
productKeyRaw
stringproductKey
ProductKey