IMSCSMessageManager_3_0::AddLanguage

Ee824866.c++_off(en-US,CS.10).gifEe824866.vb_on(en-US,CS.10).gif

Use this method to add a message set to the MessageManager, 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.

Definition

HRESULT IMSCSMessageManager_3_0::AddLanguage(BSTRbstrLanguage,longLocale);

Parameters

bstrLanguage

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

Locale

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

Return Values

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

Error Values

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.

Remarks

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

See Also

MessageManager Object

IMSCSMessageManager_3_0::get_DefaultLanguage, put_DefaultLanguage

IDataFunctions_4_0::get_Locale, put_Locale

IMSCSMessageManager_3_0::GetMessage


All rights reserved.