IMessageUserPropertyMap Property |
After adding properties to this map, it must be closed; if not, it is automatically closed after the associated message is sent, or disposed IDisposable. Whether it is explicitly closed by the client application, or implicitly by the API, any attempt to use this map results in an OperationErrorException with ParamNullReference error subcode.
As a consequence to the above note, when caching the reference to this map (to avoid creating a new temporary object with each access), client applications should not use this reference after the associated message has been sent or disposed. At that point the cached user property map reference is invalid, and a new user map reference is required by calling IMessage.UserPropertyMap to access the user property map again.
IMessage msg = ContextFactory.Instance.CreateMessage(); msg.CreateUserPropertyMap(); msg.UserPropertyMap.AddString("message", "5");
Namespace: SolaceSystems.Solclient.Messaging
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 7.2.1.27 (7.2.1.27)
IMapContainer UserPropertyMap { get; set; }
Property UserPropertyMap As IMapContainer Get Set
property IMapContainer^ UserPropertyMap { IMapContainer^ get (); void set (IMapContainer^ value); }