Share via


ActiveLanguage Property

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

Gets or sets the active language for the current instance.

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

Syntax

'Declaration
Public Overrides Property ActiveLanguage As String
'Usage
Dim instance As ProductCatalog
Dim value As String

value = instance.ActiveLanguage

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

Property Value

Type: System..::.String
Language in which in which data returned by this catalog object.

Exceptions

Exception Condition
ObjectHasChangesException

The current instance has uncommitted changes.

Remarks

Stores the active language for the current Catalog. The ActiveLanguage property is the language in which the data returned by this catalog object should be returned.

The active language cannot be changed if the product catalog has any uncommitted changes. You should call the Save method to first save the changes and then change the active language on this instance. Changing the active language will causes the contents of the current product catalog object to be re-fetched from the catalog server.

Permissions

See Also

Reference

ProductCatalog Class

ProductCatalog Members

Microsoft.CommerceServer.Catalog Namespace