'Declaration
Public Overloads Shared Function AddOrGet( _ ByVal newPerformanceCounter As PerformanceCounter, _ ByVal alias As PerfCounterInstanceAlias _ ) As PerfCounterMetric
public static PerfCounterMetric AddOrGet( PerformanceCounter newPerformanceCounter, PerfCounterInstanceAlias alias )
Parameters
- newPerformanceCounter
- The windows performance counter to add a definition for
- alias
- An alias to use to determine the instance name instead of the instance of the supplied counter.
Return Value
The Performance Counter Metric object for the specified instance.