WebSphere WebSphere Business Integration Message Service Clients for C/C++ and .NET, Version 1.2 Operating Systems: Linux, Solaris, Windows

Getting and setting properties in .NET

A .NET application uses the methods in the PropertyContext interface to get and set the properties of objects.

The PropertyContext interface encapsulates methods that get and set properties. These methods are inherited, directly or indirectly, by the following classes:

If an application sets the value of a property, the new value replaces any previous value the property had.

For further information about XMS properties, see Properties of XMS objects.

For ease of use, in .NET, XMS property names and values are predefined as public constants in a struct called XMSC. The names of these constants are in the form XMSC.<constant>, for example XMSC.USERID (a property name constant) and XMSC.DELIVERY_AS_APP (a value constant).

Additionally, you can access WebSphere MQ constants by using the IBM.XMS.MQC struct. If you have already imported the IBM.XMS namespace this means you can access the values for these properties in the form MQC.<constant>. For example MQC.MQRO_COA_WITH_FULL_DATA.

Furthermore, if you have a hybrid application that uses both XMS .NET and WebSphere MQ classes for .NET, and that imports both IBM.XMS and IBM.WMQ namespaces, then you must fully qualify the MQC struct namespace to avoid a clash.

Some advanced functionality is not currently supported within the managed .NET environment. Refer to Managed and unmanaged operation in .NET for more details.

The data types that appear in this section are in the form used for C/C++. You can find the corresponding values for .NET in Data types for .NET.


Concept topic

Terms of Use | Rate this page

Last updated: 25 Oct 2006

© Copyright IBM Corporation 2005, 2006. All Rights Reserved.