다음을 통해 공유


IMSCSMessageManager_3_0::AddLanguage Method

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

Use this method to add a message set to the MessageManager object, and associate that message set with a locale. In subsequent calls to MessageManager object methods, the caller needs to identify the message set name, not the locale.

Any number of message sets can be associated with a single locale.

HRESULT IMSCSMessageManager_3_0::AddLanguage(
 BSTR bstrLanguage,
 long Locale
);
Sub AddLanguage(
  bstrLanguage As String,
  Locale As Long
)

Parameters

  • bstrLanguage
    [C++]

    [in] A BSTR that contains the name for the message set to add to the MessageManager object.

    [Visual Basic]

    A String that contains the name for the message set to add to the MessageManager object.

  • Locale
    [C++]

    [in] A long that uniquely identifies the locale to associate with the added message set.

    [Visual Basic]

    A Long that uniquely identifies the locale to associate with the added message set.

Return Values

[C++]

This method returns an HRESULT indicating whether it completed successfully. See the Error Values section for more details.

Error Values

[C++]

This method returns S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.

[Visual Basic]

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

See Also

Other Resources

MessageManager Object