Loupe - Log - Monitor - Resolve
Gibraltar.Agent.PostSharp Namespace / GField Class / InstanceNamer Property

In This Topic
    InstanceNamer Property
    In This Topic
    Name of the class property used to name instances of the monitored field. Optional.
    Syntax
    'Declaration
     
    
    Public Property InstanceNamer As String
    public string InstanceNamer {get; set;}
    Remarks

    The instance namer overrides how the object containing the field is identified.

    Since the GField attribute is applied to a field it will be tracked for all instances of the related class. With the exception of static classes this may be a potentially unbounded set of different objects. By default, every object has a unique runtime identifier which is recorded with the metric value to enable correlation during analysis but this value is not predictable or consistent. Instead, if an object has a property that represents a more useful, unique name for the object then specifying its name in this property will produce more useful log messages and graphs.

    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