MessageManager.GetLocale Method

The GetLocale method returns a number that identifies the locale for the specified message set.

Syntax

MessageManager.GetLocale(MessageSet)

Parameters

MessageSet
Optional. The name of the message set for which you want to retrieve the locale. This message set must have been added to the MessageManager through a previous call to AddLanguage.

If this parameter is not specified, GetLocale returns the locale for the message set to which you have initialized the MessageManager’s DefaultLanguage property.

Remarks

Like GetMessage, GetLocale is usually not called from within a site. Instead, it is used by the OPP to retrieve the locale for a message that describes an error that the OPP has encountered during a purchase.

Related Topics


© 1997-1998 Microsoft Corporation. All rights reserved.