'Declaration
Public Function CreateSample() As EventMetricSample
public EventMetricSample CreateSample()
Return Value
The new metric sample object.
'Declaration
Public Function CreateSample() As EventMetricSample
public EventMetricSample CreateSample()
This creates an empty sample for the current event metric instance, which needs to be filled out and written. Set the value columns by calling newSample.SetValue(...), and write it to the Loupe log by calling newSample.Write().
To record samples for event metrics defined via attributes, call eventMetricInstance.WriteSample(userDataObject) or EventMetric.Write(userDataObject).
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