Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / ThreadInfoCollection Class / TryGetValue Method / TryGetValue(Int32,ThreadInfo) Method
The ThreadId of the desired ThreadInfo.
Gets the ThreadInfo with the specified ThreadIndex if it exists in the ThreadInfoCollection.

In This Topic
    TryGetValue(Int32,ThreadInfo) Method
    In This Topic
    Get the ThreadInfo with a specified ThreadIndex. (Use TryFindThreadId() to look up by ManagedThreadId.)
    Syntax
    'Declaration
     
    
    Public Overloads Function TryGetValue( _
       ByVal threadIndex As Integer, _
       ByRef threadInfo As ThreadInfo _
    ) As Boolean
    public bool TryGetValue( 
       int threadIndex,
       out ThreadInfo threadInfo
    )

    Parameters

    threadIndex
    The ThreadId of the desired ThreadInfo.
    threadInfo
    Gets the ThreadInfo with the specified ThreadIndex 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