Loupe - Log - Monitor - Resolve
Gibraltar.Agent.PostSharp Namespace / GTrace Class / LogReturnValue Property

In This Topic
    LogReturnValue Property (GTrace)
    In This Topic
    Enables or disables recording of the method return value (if declared). Enabled by default.
    Syntax
    'Declaration
     
    
    Public Property LogReturnValue As Boolean
    public bool LogReturnValue {get; set;}
    Remarks

    When enabled GTrace will record the return value on method exit. The return value will be recorded as its ToString() representation if overridden (and for struct and enum types). If ToString() is not overridden in a class type (or if LogParameterDetails is disabled) the base implementation will be replaced with the type's full name and the hash code for that instance. Some implementations of ToString() can produce very long strings and can result in very large messages for certain objects if such details are also enabled (which is the default).

    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