Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / EventMetricDefinition Class / Register Method

In This Topic
    Register Method (EventMetricDefinition)
    In This Topic
    Register this instance as a completed definition and return the valid usable definition for this event metric.
    Syntax
    'Declaration
     
    
    Public Function Register() As EventMetricDefinition
    public EventMetricDefinition Register()

    Return Value

    The actual usable definition with the same metrics system, category name, and counter name as this instance.
    Remarks
    This call is necessary to complete a new event metric definition (created by calls to AddValue) before it can be used, and it signifies that all desired value columns have been added to the definition. Only the first registration of a metric definition with a given Key (metrics system, category name, and counter name) will be effective and return the same definition object; subsequent calls (perhaps by another thread) will instead return the existing definition already registered. If a definition already registered with that Key can not be an event metric (e.g. a sampled metric is defined with that Key) or if this instance defined value columns not present as compatible value columns in the existing registered definition with that Key, then an ArgumentException will be thrown to signal your programming mistake.
    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