| RemoteDriverTryFindT Method (ISearchPattern, Int32, T) | 
 
            Searches for an object that matches the specified pattern. 
            The search depth is specified as a parameter. 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
Syntaxpublic bool TryFind<T>(
	ISearchPattern pattern,
	int depth,
	out T res
)
where T : class, IObjectTreeNode
Public Function TryFind(Of T As {Class, IObjectTreeNode}) ( 
	pattern As ISearchPattern,
	depth As Integer,
	<OutAttribute> ByRef res As T
) As Boolean
Dim instance As RemoteDriver
Dim pattern As ISearchPattern
Dim depth As Integer
Dim res As T
Dim returnValue As Boolean
returnValue = instance.TryFind(pattern, 
	depth, res)public:
generic<typename T>
where T : ref class, IObjectTreeNode
virtual bool TryFind(
	ISearchPattern^ pattern, 
	int depth, 
	[OutAttribute] T% res
) sealed
Parameters
- pattern
- Type: SmartBear.TestLeftISearchPattern
 The search pattern.
- depth
- Type: SystemInt32
 The search depth.
- 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.
Implements
IDriverTryFindT(ISearchPattern, Int32, T) See Also
See Also