| IDriverTryFindT Method (ISearchPattern, T) | 
 
            Searches for an object that matches the specified pattern.
            The search depth is 1. The default search timeout 
AutoWaitTimeout is used.
            
 
    Namespace: 
   SmartBear.TestLeft
    Assembly:
   SmartBear.TestLeft (in SmartBear.TestLeft.dll) Version: 14.70.237.11 (14.70.237.11)
 Syntax
Syntaxbool TryFind<T>(
	ISearchPattern pattern,
	out T res
)
where T : class, IObjectTreeNode
Function TryFind(Of T As {Class, IObjectTreeNode}) ( 
	pattern As ISearchPattern,
	<OutAttribute> ByRef res As T
) As Boolean
Dim instance As IDriver
Dim pattern As ISearchPattern
Dim res As T
Dim returnValue As Boolean
returnValue = instance.TryFind(pattern, 
	res)generic<typename T>
where T : ref class, IObjectTreeNode
bool TryFind(
	ISearchPattern^ pattern, 
	[OutAttribute] T% res
)
Parameters
- pattern
- Type: SmartBear.TestLeftISearchPattern
 The search pattern.
- res
- Type: T
 The found object or null.
Type Parameters
- T
- The interface that will be implemented in the returned object.
Return Value
Type: 
BooleanTrue if the object was found. Otherwise, false.
 See Also
See Also