Message—Set Properties


Method

Declaration

void SetBooleanProperty(string name, bool val); 
void SetByteProperty(string name, byte val); 
void SetShortProperty(string name, short val); 
void SetIntProperty(string name, int val); 
void SetLongProperty(string name, long val); 
void SetFloatProperty(string name, float val); 
void SetDoubleProperty(string name, double val); 
void SetStringProperty(string name, string val); 
void SetObjectProperty(string name, Object val); 

Purpose

Set the value of a message property.

Parameters

Parameter
Description
name
Set a property with this name.

Property names must obey the JMS rules for a message selector identifier (see Message Selectors). Property names must not be null, and must not be empty strings.

val
Set the property to this value.

Remarks

The JMS specification defines eight methods to set properties with different primitive value types. It also defines a ninth method to set a property to an object representation of any of the eight primitive types.

See Also

Message—Get Properties


TIBCO Enterprise Message Service™ .NET Reference
System Release 4.3, February 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com