DefaultLanguage Property

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

Gets or sets the default language for the shipping method of the current instance.

Namespace:  Microsoft.CommerceServer.Orders
Assembly:  Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)

Syntax

'Declaration
Public Property DefaultLanguage As String
'Usage
Dim instance As ShippingMethod
Dim value As String

value = instance.DefaultLanguage

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

Property Value

Type: System..::.String
The default language for the shipping method of the current instance.

Exceptions

Exception Condition
ArgumentNullException

An attempt was made to set the default language to nullNothingnullptra null reference (Nothing in Visual Basic)

ArgumentException

After trimming white space, the length of the string being set is less than 1 or greater than 128 characters.

LanguageNotFoundException

The language identifier being set does not exist in the database.

Remarks

A shipping method stores information in multiple languages and returns properties in the default language unless another language is specified at runtime. The length, after trimming white space, must be greater than 0 and no greater than 128 characters.

Permissions

See Also

Reference

ShippingMethod Class

ShippingMethod Members

Microsoft.CommerceServer.Orders Namespace