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.

Parse(string)

public static ProductKey Parse(string productKey)

Parameters

productKey string

Returns

ProductKey

ToString()

Returns a string representation of this instance.

public override string ToString()

Returns

string

TryParse(string, out ProductKey)

public static bool TryParse(string productKeyRaw, out ProductKey productKey)

Parameters

productKeyRaw string
productKey ProductKey

Returns

bool
To top