WebSphere Message Broker, Version 8.0.0.7 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

See information about the latest product version

cniSetElementType

Use this function to set the type of the specified syntax element.

Syntax

void cniSetElementType(
  int*            returnCode,
  CciElement*     targetElement,
  CciElementType  type);

Parameters

returnCode
The return code from the function (output).
Possible return codes are:
  • CCI_SUCCESS
  • CCI_EXCEPTION
  • CCI_INV_ELEMENT_OBJECT
targetElement
The address of the target syntax element object (input).
type
The type of the element (input).

Return values

None. If an error occurs, the returnCode parameter indicates the reason for the error.

Example

    CciElement* lastChild = cniCreateElementAsLastChild(&rc, outRootElement);
    cniSetElementName(&rc, lastChild, elementName);
    cniSetElementType(&rc, lastChild, CCI_ELEMENT_TYPE_NAME);
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2016Copyright IBM Corporation 1999, 2016.

        
        Last updated:
        
        Last updated: 2016-05-23 14:47:30


Reference topicReference topic | Version 8.0.0.7 | as07970_