AddOrGet Method (EventMetricCollection)
Creates a new metric instance or returns an existing one by inspecting the provided object for EventMetricDefinition attributes.
'Declaration
Public Function AddOrGet( _
ByVal As Object _
) As EventMetric
public EventMetric AddOrGet(
object
)
Parameters
- userDataObject
- The object to create a metric from.
Return Value
The event metric object for the specified event metric instance.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2