Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / ThreadInfoCollection Class / TryFindThreadId Method
The ThreadId of the desired ThreadInfo.
Gets the ThreadInfo with the specified ThreadId if it exists in the ThreadInfoCollection.

In This Topic
    TryFindThreadId Method
    In This Topic
    Get the ThreadInfo with a specified ThreadId. (Finds earliest match, but ThreadId may not be unique! Use Guid if possible.)
    Syntax
    'Declaration
     
    
    Public Function TryFindThreadId( _
       ByVal threadId As Integer, _
       ByRef threadInfo As ThreadInfo _
    ) As Boolean
    public bool TryFindThreadId( 
       int threadId,
       out ThreadInfo threadInfo
    )

    Parameters

    threadId
    The ThreadId of the desired ThreadInfo.
    threadInfo
    Gets the ThreadInfo with the specified ThreadId if it exists in the ThreadInfoCollection.

    Return Value

    True if found, false if not 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