10.27.03

FlowPropertiesFromDictionaryWithPrefix Method

Creates and returns a new FlowProperties given a dictionary of key/value strings

where:

key: is a string representation of a given FlowProperties property FlowPropertiesPROPERTY prefixed with a string "prefix".

value: is a string representation of the value of that property.

Rules:

1. Keys that are not in the FlowProperties's property set FlowPropertiesPROPERTY, are ignored and a warning log is generated

2. If a property is omitted, the default value is used.

3. Validation and type checking is performed on the provided values; a conversion exception is thrown if any of the provided values cannot be converted.

4. Read-only properties are ignored.

Definition

Namespace: SolaceSystems.Solclient.Messaging
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 10.27.0
C#
public static FlowProperties FromDictionaryWithPrefix(
	IDictionary<string, string> dictionary,
	string prefix
)

Parameters

dictionary  IDictionaryString, String
prefix  String
The prefix to prepend to the property name (using '.' as a separator). If null is passed in, "FlowProperties" is assumed

Return Value

FlowProperties
Returns a new FlowProperties given a dictionary of key/value strings

Exceptions

FormatException
OverflowException

See Also