IObjectTreeNodeFindT Method (ISearchPattern, Int32) |
Searches for an object that matches the specified pattern. The default search timeout
AutoWaitTimeout is used.
Namespace:
SmartBear.TestLeft.TestObjects
Assembly:
SmartBear.TestLeft (in SmartBear.TestLeft.dll) Version: 14.70.237.11 (14.70.237.11)
Syntax T Find<T>(
ISearchPattern pattern,
int depth = 1
)
where T : class, IObjectTreeNode
Function Find(Of T As {Class, IObjectTreeNode}) (
pattern As ISearchPattern,
Optional depth As Integer = 1
) As T
Dim instance As IObjectTreeNode
Dim pattern As ISearchPattern
Dim depth As Integer
Dim returnValue As T
returnValue = instance.Find(pattern, depth)
generic<typename T>
where T : ref class, IObjectTreeNode
T Find(
ISearchPattern^ pattern,
int depth = 1
)
Parameters
- pattern
- Type: SmartBear.TestLeftISearchPattern
The search pattern. - depth (Optional)
- Type: SystemInt32
The search depth.
Type Parameters
- T
- The interface that will be implemented in the returned object.
Return Value
Type:
TThe found object.
Exceptions See Also