RanorexRanorex Documentation
TryFindSingle<(Of <(T>)>) Method (path, foundAdapter)
NamespacesRanorexAdapterTryFindSingle<(Of <(T>)>)(RxPath, T%)
Tries to apply a Ranorex Path to the adapter, returning a specific adapter type (e.g. Role or Capability).
Declaration Syntax
C#Visual BasicVisual C++
public bool TryFindSingle<T>(
	RxPath path,
	out T foundAdapter
)
where T : Adapter
Public Function TryFindSingle(Of T As Adapter) ( _
	path As RxPath, _
	<OutAttribute> ByRef foundAdapter As T _
) As Boolean
public:
generic<typename T>
where T : Adapter
bool TryFindSingle(
	RxPath^ path, 
	[OutAttribute] T% foundAdapter
)
Generic Template Parameters
T
The expected adapter type. The supplied type must inherit from Adapter, but most not be the Adapter type itself.
Parameters
path (RxPath)
The RxPath to apply.
foundAdapter ( T %)
The first element found converted to the specified adapter type or null if no element is found or the element does not support the capabilities to create the specified adapter type.
Return Value
True if an element is found for the specified path and the specified adapter type could be created, otherwise false.

Assembly: Ranorex.Core (Module: Ranorex.Core) Version: 3.2.1.15734 (3.2.1.15734)