Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFRpcMetric.ToDictionary Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFRpcMetric.ToDictionary Method
Converts the AFRpcMetric list into a dictionary.

Namespace:  OSIsoft.AF.Diagnostics
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public static IDictionary<string, AFRpcMetric> ToDictionary(
	IList<AFRpcMetric> metrics
)
Public Shared Function ToDictionary ( 
	metrics As IList(Of AFRpcMetric)
) As IDictionary(Of String, AFRpcMetric)

Dim metrics As IList(Of AFRpcMetric)
Dim returnValue As IDictionary(Of String, AFRpcMetric)

returnValue = AFRpcMetric.ToDictionary(metrics)
public:
static IDictionary<String^, AFRpcMetric>^ ToDictionary(
	IList<AFRpcMetric>^ metrics
)
static member ToDictionary : 
        metrics : IList<AFRpcMetric> -> IDictionary<string, AFRpcMetric> 

Parameters

metrics
Type: System.Collections.GenericIListAFRpcMetric
The list of AFRpcMetric items to be converted into a dictionary.

Return Value

Type: IDictionaryString, AFRpcMetric
Returns a dictionary of AFRpcMetric items with the Name as the key.

Remarks

The returned dictionary uses the Name as the key. This can be used to easily look up AFRpcMetric items by name.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in