Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Agent.Logging Namespace / MessageSourceProvider Class / MessageSourceProvider Constructor / MessageSourceProvider Constructor(Int32)
The number of stack frames to skip over to find the first candidate to be identified as the source of the log message.

In This Topic
    MessageSourceProvider Constructor(Int32)
    In This Topic
    Creates a MessageSourceProvider object to be used as an IMessageSourceProvider.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal skipFrames As Integer _
    )
    public MessageSourceProvider( 
       int skipFrames
    )

    Parameters

    skipFrames
    The number of stack frames to skip over to find the first candidate to be identified as the source of the log message.
    Remarks
    This constructor is used only for the convenience of the Log class when it needs to generate an IMessageSoruceProvider for construction of internally-generated packets without going through the usual direct PublishToLog() mechanism.
    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