Loupe - Log - Monitor - Resolve
Gibraltar.Agent.Metrics Namespace / EventMetricSample Class / SetValue Method / SetValue(Int32,Object) Method
The zero-based index within the value definition of the value to be recorded.
Optional. The value to be recorded.

In This Topic
    SetValue(Int32,Object) Method
    In This Topic
    Records a value to the values array of this sample given the zero-based index of the value definition to be used.
    Syntax
    'Declaration
     
    
    Public Overloads Sub SetValue( _
       ByVal valueIndex As Integer, _
       ByVal value As Object _
    ) 
    public void SetValue( 
       int valueIndex,
       object value
    )

    Parameters

    valueIndex
    The zero-based index within the value definition of the value to be recorded.
    value
    Optional. 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. If called more than once for the same value, the prior value will be replaced.
    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