Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Agent.Metrics Namespace / SampledMetricInstanceNameAttribute Class
Members

In This Topic
    SampledMetricInstanceNameAttribute Class
    In This Topic
    Indicates which field, property, or method should be used to provide the instance name for the sampled metric.
    Syntax
    'Declaration
     
    
    <AttributeUsageAttribute(AttributeTargets.Field Or  _
        AttributeTargets.Method Or  _
        AttributeTargets.Property, 
       AllowMultiple=False, 
       Inherited=False)>
    <SerializableAttribute()>
    Public NotInheritable Class SampledMetricInstanceNameAttribute 
       Inherits System.Attribute
    [AttributeUsage(AttributeTargets.Field | 
        AttributeTargets.Method | 
        AttributeTargets.Property, 
       AllowMultiple=false, 
       Inherited=false)]
    [Serializable()]
    public sealed class SampledMetricInstanceNameAttribute : System.Attribute 
    Remarks
    The current object must also have the SampledMetric attribute defined. Only one field, property, or method in an object can have this attribute defined. Whatever value is returned will be converted to a string to uniquely identify the metric, or a null value will select the default instance. If no item on an object has this attribute defined, the default instance will be used unless an instance name is specified when sampling.
    Inheritance Hierarchy

    System.Object
       System.Attribute
          Gibraltar.Agent.Metrics.SampledMetricInstanceNameAttribute

    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