AddAttribute method: IBInfo class

Syntax

AddAttribute(name, value)

Description

Use this method to add an attribute to an IBInfo object.

Note:

This method can be used for content-based routing only, typically in your implementation of the IRouter.OnRouteSend or IRouter.OnRouteReceive methods.

The maximum length of the attribute name is 30 characters. The maximum length of the attribute value is 254 characters.

Parameters

Parameter Description

name

Specifies the attribute name as a string.

value

Specifies the attribute value as a string.

Returns

A Boolean value: true if the addition of the attribute was successful, false otherwise.

Example

&bRet = &MSG.IBInfo.AddAttribute("employeeID", "123456");

Related Topics