Loupe - Log - Monitor - Resolve
Gibraltar.Agent.Logging Namespace / MessageSourceProvider Class / MessageSourceProvider Constructor / MessageSourceProvider Constructor(String,String,String,Int32)
The full name of the class (with namespace) whose method issued the log message.
The simple name of the method which issued the log message.
The name of the file containing the method which issued the log message.
The line within the file at which the log message was issued.

In This Topic
    MessageSourceProvider Constructor(String,String,String,Int32)
    In This Topic
    Creates a MessageSourceProvider object to be used as an IMessageSourceProvider.
    Syntax
    'Declaration
     
    
    <NullableContextAttribute(1)>
    Public Function New( _
       ByVal className As String, _
       ByVal methodName As String, _
       ByVal fileName As String, _
       ByVal lineNumber As Integer _
    )
    [NullableContext(1)]
    public MessageSourceProvider( 
       string className,
       string methodName,
       string fileName,
       int lineNumber
    )

    Parameters

    className
    The full name of the class (with namespace) whose method issued the log message.
    methodName
    The simple name of the method which issued the log message.
    fileName
    The name of the file containing the method which issued the log message.
    lineNumber
    The line within the file at which the log message was issued.
    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