Collapse All Expand All

.NET Framework Class Library
Message Class See Also

[TIBCO.EMS .NET client library 5.1 documentation]

Sets an object property value with the specified name into the message

Namespace: TIBCO.EMS
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)

# Syntax

    public void SetObjectProperty(
    	string name,
    	Object val
    )

    Public Sub SetObjectProperty ( _
    	name As String, _
    	val As Object _
    )

    public:
    void SetObjectProperty(
    	String^ name,
    	Object^ val
    )

#### Parameters

name
  Type: System..::.String
  the name of the object property

val
  Type: System..::.Object
  the object property value to set

# Remarks

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

# Exceptions

Exception | Condition
--- | ---
TIBCO.EMS..::.MessageNotWriteableException | An MessageNotWriteableException may be thrown if properties are read-only
System..::.ArgumentException | An ArgumentException may be thrown if the name is null or if the name is an empty string

# See Also

Message Class
TIBCO.EMS Namespace