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

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

public static MetricCollection FromString(
	string text
)

Parameters

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

Return Value

A MetricCollection.
Remarks

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

myMetric01=12,F;myMetric02=101,myMetric03=34

For pass values of true omit the ",F" from each successful metric.

myMetric01=12;myMetric02=101,myMetric03=34

Examples

The following example demonstrates creating a MetricCollection object from a string.
// construct a MetricCollection instance 
string metricText = "myMetric01=12,F;myMetric02=101,myMetric03=34";
MetricCollection myCollection = MetricCollection.FromString(metricText);
See Also