다음을 통해 공유


ProductVariantDictionary Class

Important

This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.

Represents a product's variants, keyed on the variant id.

Namespace:  Microsoft.Dynamics.Commerce.Runtime.DataModel
Assembly:  Microsoft.Dynamics.Commerce.Runtime.Entities (in Microsoft.Dynamics.Commerce.Runtime.Entities.dll)

Syntax

'Declaration
<CollectionDataContractAttribute(Name := "ProductVariantDictionary", ItemName := "Entry",  _
    KeyName := "ProductVariantId", ValueName := "ProductVariant")> _
Public NotInheritable Class ProductVariantDictionary _
    Inherits Dictionary(Of Long, ProductVariant)
'Usage
Dim instance As ProductVariantDictionary
[CollectionDataContractAttribute(Name = "ProductVariantDictionary", ItemName = "Entry", 
    KeyName = "ProductVariantId", ValueName = "ProductVariant")]
public sealed class ProductVariantDictionary : Dictionary<long, ProductVariant>
[CollectionDataContractAttribute(Name = L"ProductVariantDictionary", ItemName = L"Entry", 
    KeyName = L"ProductVariantId", ValueName = L"ProductVariant")]
public ref class ProductVariantDictionary sealed : public Dictionary<long long, ProductVariant^>

Inheritance Hierarchy

System.Object
  System.Collections.Generic.Dictionary<Int64, ProductVariant>
    Microsoft.Dynamics.Commerce.Runtime.DataModel.ProductVariantDictionary

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Dynamics.Commerce.Runtime.DataModel Namespace