Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / EventMetricValueDefinitionCollection Class / Add Method / Add(String,Type) Method
The unique name for this value definition
The simple type of this value

In This Topic
    Add(String,Type) Method
    In This Topic
    Create a new value definition with the supplied name and type. The name must be unique in this collection
    Syntax
    'Declaration
     
    
    Public Overloads Function Add( _
       ByVal name As String, _
       ByVal type As Type _
    ) As EventMetricValueDefinition
    public EventMetricValueDefinition Add( 
       string name,
       Type type
    )

    Parameters

    name
    The unique name for this value definition
    type
    The simple type of this value

    Return Value

    The newly created value definition
    Remarks
    Internally, only simple type are supported. Any non-numeric, non-DateTimeOffset type will be converted to a string using the default ToString capability when it is 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