Collapse All Expand All

.NET Framework Class Library
Tibems Class See Also

[TIBCO.EMS .NET client library 5.1 documentation]

Modify a property value

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

# Syntax

    public static void SetProperty(
    	string key,
    	Object val
    )

    Public Shared Sub SetProperty ( _
    	key As String, _
    	val As Object _
    )

    public:
    static void SetProperty(
    	String^ key,
    	Object^ val
    )

#### Parameters

key
  Type: System..::.String
  Set the value associated with this property name.

val
  Type: System..::.Object
  Set the property to this value.

# Remarks

In .NET, methods exist to get and set the properties. SetProperty provides an alternate way to set property values, which is consistent with the EMS Java API (for easy porting to .NET).

You can supply any of the following constants:

- PROP_SOCKET_RECEIVE
- PROP_SOCKET_SEND
- PROP_CONNECT_ATTEMPTS
- PROP_RECONNECT_ATTEMPTS
- PROP_CLOSE_IN_CALLBACK
- PROP_PING_INTERVAL
- PROP_FT_SWITCH_EXCEPTION
- PROP_MESSAGE_ENCODING
- PROP_DAEMON_DISPATCHER

The constants are defined as static fields of Tibems. The values of those constants are the actual property names.

# See Also

Tibems Class
TIBCO.EMS Namespace