Gibraltar Loupe
SetValue(String,Object) Method

The unique name of the value being recorded (must match a value name in the metric definition).
The value to be recorded.
Set a value in this sample by its value column name.
Syntax
'Declaration
 
Public Overloads Sub SetValue( _
   ByVal name As String, _
   ByVal value As Object _
) 
public void SetValue( 
   string name,
   object value
)

Parameters

name
The unique name of the value being recorded (must match a value name in the metric definition).
value
The value to be recorded.
Remarks
The value must be defined as part of the event metric definition associated with this sample or an exception will be thrown. The data type must also be compatible with the data type configured on the event metric definition or no data will be recorded.
Requirements

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

See Also

Reference

EventMetricSample Class
EventMetricSample Members
Overload List

 

 


Copyright © 2008-2013 Gibraltar Software, Inc.

Send Feedback