Click or drag to resize

IObjectTreeNode.TryFind<T> 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.TestObjects
Assembly:  SmartBear.TestLeft (in SmartBear.TestLeft.dll) Version: 14.70.237.11 (14.70.237.11)
Syntax
bool TryFind<T>(
	ISearchPattern pattern,
	out T res
)
where T : class, IObjectTreeNode

Parameters

pattern
Type: SmartBear.TestLeft.ISearchPattern
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: Boolean
True if the object was found. Otherwise, false.
See Also