Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / LogMessageBase Class / FirstException Method
An array of objects which might or might not contain an Exception.

In This Topic
    FirstException Method
    In This Topic
    This static helper method looks through an array of objects (eg. the param args) for the first Exception.
    Syntax
    'Declaration
     
    
    Protected Shared Function FirstException( _
       ByVal args() As Object _
    ) As Exception
    protected static Exception FirstException( 
       object[] args
    )

    Parameters

    args
    An array of objects which might or might not contain an Exception.

    Return Value

    The first element of the array which is an Exception (or derived from Exception), or null if none is found.
    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