Поделиться через


Language Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets or sets the language used for the search.

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

Syntax

'Declaration
Public Property Language As String
'Usage
Dim instance As CatalogSearch
Dim value As String

value = instance.Language

instance.Language = value
public string Language { get; set; }
public:
property String^ Language {
    String^ get ();
    void set (String^ value);
}
public function get Language () : String
public function set Language (value : String)

Property Value

Type: System..::.String
The language used for the search.

Remarks

Stores the language used for the search. The language will be used to select the content to perform the search on and return multilingual catalog content in the specified language. For example if you specify "en-US" then the search will be performed on the English content and the results will contain the catalog content in "en-US". If this property is not specified

  • If the search is performed on a single catalog then the search will be performed on the default language of the catalog.

  • If the search is performed on a category then the search will be performed on the default language of the catalog.

  • If the search is performed on multiple catalogs then the search will be performed on the non multilingual content in all that catalog.

If this property is specified

  • If the specified language does not exist in the catalog and the search is performed on a single catalog then the search will be performed on the default language of the catalog.

  • If the specified language does not exist in the catalog and the search is performed on a category then the search will be performed on the default language of the catalog.

  • If the search is performed on multiple catalogs and the language does not exist in a catalog then the search will be performed on the non multilingual content in that catalog.

Permissions

See Also

Reference

CatalogSearch Class

CatalogSearch Members

Microsoft.CommerceServer.Catalog Namespace