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:
- 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
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.