Jaa


IMSCSMessageManager::get_DefaultLanguage, put_DefaultLanguage Property

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

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

HRESULT IMSCSMessageManager_3_0::get_defaultLanguage(
 BSTR* defaultLanguage
);

HRESULT IMSCSMessageManager_3_0::put_defaultLanguage(
 BSTR defaultLanguage
);
Property DefaultLanguage As String

Parameters

  • defaultLanguage
    [C++]

    [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

[C++]

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

[Visual Basic]

None.

Error Values

[C++]

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.

[Visual Basic]

This property 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.

Remarks

[C++] The defaultLanguage parameter contains valid data only if the property is accessed successfully.

See Also

Other Resources

MessageManager Object