IMSCSMessageManager_3_0::get_DefaultLanguage, put_DefaultLanguage

Ee824564.c++_off(en-US,CS.10).gifEe824564.vb_on(en-US,CS.10).gif

Use the DefaultLanguage property to specify the default message set for the MessageManager. When you use the GetMessage method, or use the AddMessage method to add messages to the MessageManager, without specifying a message set for those messages, then the messages are associated with the message set specified in this property.

Definition

Get method:

HRESULT IMSCSMessageManager_3_0::get_defaultLanguage(BSTR*defaultLanguage);

Put method:

HRESULT IMSCSMessageManager_3_0::put_defaultLanguage(BSTRdefaultLanguage);

Parameters

defaultLanguage

[in] When putting the property, a BSTR that contains the default language.
[out, retval] When getting the property, a BSTR used to return the default language.

Return Values

These methods return an HRESULT indicating whether they completed successfully. See the Error Values section for more details.

Error Values

These methods return 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

The defaultLanguage parameter contains valid data only if the property is accessed successfully.

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::GetLocale


All rights reserved.