[TIBCO.EMS .NET client library 7.0 documentation]

Retrieve the property value given the property name

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

Syntax

public static Object GetProperty(
	string key
)
Public Shared Function GetProperty ( _
	key As String _
) As Object
public:
static Object^ GetProperty(
	String^ key
)

Parameters

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

Return Value

The value for the given property. If the property is not set, null is returned

Remarks

The properties here refer to those explicitly set by calling SetProperty(String, Object) or system properties (e.g PROP_PING_INTERVAL etc.) set by either calling the specific methods (e.g SetPingInterval(Int32)) or system properties set via SetProperty(String, Object).

You can supply any of the following constants:

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

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

NOTE: In case of system properties if the values are never set then the default values are returned.

See Also