'Declaration
Public Overloads Sub WriteSample( _ ByVal metricData As Object _ )
public void WriteSample( object metricData )
Parameters
- metricData
- The object to retrieve metric values from.
'Declaration
Public Overloads Sub WriteSample( _ ByVal metricData As Object _ )
public void WriteSample( object metricData )
Exception | Description |
---|---|
System.ArgumentNullException | The provided metricData object was null. |
System.ArgumentException | This sampled metric's definition is not bound to sample automatically from a user data object. WriteSample(...) must be given the data values directly. -or- The provided user data object type ({0}) is not assignable to this sampled metric's bound type ({1}) and can not be sampled automatically for this 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