Udostępnij za pośrednictwem


AddLanguageToPropertyDefinitions Method

Adds the specified language to the property definitions.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Sub AddLanguageToPropertyDefinitions ( _
    language As String _
)
'Usage
Dim instance As CatalogContext
Dim language As String

instance.AddLanguageToPropertyDefinitions(language)
public void AddLanguageToPropertyDefinitions(
    string language
)
public:
void AddLanguageToPropertyDefinitions(
    String^ language
)
public function AddLanguageToPropertyDefinitions(
    language : String
)

Parameters

  • language
    Type: System..::.String
    The culture code indicating the language that is associated with the Catalog.

Remarks

Adds the language to the Catalog System. Adding a language adds that language to a StringCollection. If the language validation detects an error a ValidationException exception is thrown.

The language should:

  • Not exceed 10 characters.

  • Not contain the ,'[] characters.

The language is specified as a RFC 1766 CultureInfo class name. If nullNothingnullptra null reference (Nothing in Visual Basic), the language defaults to the current user interface culture.

Permissions

See Also

Reference

CatalogContext Class

CatalogContext Members

Microsoft.CommerceServer.Catalog Namespace