Metric FromString Method C# API
Initializes an instance of the Metric class, from the specified text.

Namespace: Facilita.Fc.Runtime
Assembly: fc_clr (in fc_clr.dll) Version: 9.5.8.37
Syntax

public static Metric FromString(
	string text
)

Parameters

text
Type: System String
A string that can converted into a Metric instance.

Return Value

A metric instance.
Remarks

Takes a string in the following format and constructs a Metric instance.

myMetric01=12,F

For pass values of true omit the ",F" from the string.

myMetric02=34

Examples

The following example demonstrates constructing a Metric object from a string.
// construct a Metric instance 
string metricText = "myMetric01=12,F";
Metric myMetric = Metric.FromString(metricText);
See Also