IBaseMessageContext.IsPromoted Method (COM)

 

Enables the component to determine whether a property has already been marked for promotion in the message context.

Syntax

  
    bstrName,  
bstrNamespace,  
pbPromotionFlag  
  
    bstrName  
      ,  
bstrNamespace  

Parameters

bstrName
[in] String that contains the property name.

bstrName
String that contains the property name.

bstrNamespace
[in] String that contains the property namespace.

bstrNamespace
String that contains the property namespace.

pbPromotionFlag
[out,retval] Pointer to a Boolean used to return the promotion flag. true if the property has been marked for promotion; otherwise, false.

Return Values

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

true if the property has been marked for promotion; otherwise, false.

Error Values

This method returns an HRESULT containing one of the values in the following table.

This method indicates errors by setting the Number property of the global Err object to one of the values in the following table.

Value Description
S_OK The method completed successfully.
E_INVALIDARG A parameter that is not valid was detected.

Requirements

Platforms:  Windows

See Also

IBaseMessageContext Interface (COM)
IBaseMessageContext Members (COM)