AddPropertyForLanguage Method

Adds the specified property and associated it with the specified language. Overwrites any previous property for the same language and KeyName of property.

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

Syntax

'Declaration
Public Sub AddPropertyForLanguage ( _
    language As String, _
    property As ListingProperty, _
    channelLanguages As ICollection(Of String), _
    canHaveTranslation As Boolean _
)
'Usage
Dim instance As LanguageListingPropertiesDictionary
Dim language As String
Dim property As ListingProperty
Dim channelLanguages As ICollection(Of String)
Dim canHaveTranslation As Boolean

instance.AddPropertyForLanguage(language, _
    property, channelLanguages, canHaveTranslation)
public void AddPropertyForLanguage(
    string language,
    ListingProperty property,
    ICollection<string> channelLanguages,
    bool canHaveTranslation
)
public:
void AddPropertyForLanguage(
    String^ language, 
    ListingProperty^ property, 
    ICollection<String^>^ channelLanguages, 
    bool canHaveTranslation
)

Parameters

See Also

Reference

LanguageListingPropertiesDictionary Class

Microsoft.Dynamics.Commerce.Runtime.DataModel Namespace