MapMessage—Get


Method

Declaration

bool GetBoolean(string name); 
byte GetByte(string name); 
short GetShort(string name); 
char GetChar(string name); 
int GetInt(string name); 
long GetLong(string name); 
float GetFloat(string name); 
double GetDouble(string name); 
string GetString(string name); 
byte[] GetBytes(string name); 
Object GetObject(string name); 

Purpose

Get primitive datatypes from a map message.

Parameters

Parameter
Description
name
Get the value associated with this name.

Remarks

The JMS specification defines eleven methods to extract data from the name-value pairs of a MapMessage. Ten of these methods extract primitive data values. The GetObject method gets these values as if they were objects.

Returns

Each call finds the named pair (if it exists) and returns its value.

When the message does not have a field set for the name, these calls return null.


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