ParametersValuePart Method

Gets the information about a value in a parameter composed of several values separated by a character.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static string ValuePart(
	string valueParameter,
	int index,
	char separator = ';'
)

Parameters

valueParameter  String
Complete parameter content.
index  Int32
Value position (starts from position 1).
separator  Char  (Optional)
Separator character used to separate parameter values.

Return Value

String
String with the value contained in the indicated position of a composite parameter

Remarks

Example: GetValuePart("value1;value2;value3", 2) --> value 2

Exceptions

See Also