RanorexRanorex Documentation
Create<(Of <(T>)>) Method (element)
NamespacesRanorexAdapterCreate<(Of <(T>)>)(Element)
Constructs an adapter of a specific type for a given element.
Declaration Syntax
C#Visual BasicVisual C++
public static T Create<T>(
	Element element
)
where T : Adapter
Public Shared Function Create(Of T As Adapter) ( _
	element As Element _
) As T
public:
generic<typename T>
where T : Adapter
static T Create(
	Element^ element
)
Generic Template Parameters
T
The type of adapter to construct. The supplied type must inherit from Adapter, but most not be the Adapter type itself.
Parameters
element (Element)
The element associated with the adapter.
Return Value
The adapter instance.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf element is null.
CapabilityNotSupportedExceptionIf the element does not support the capabilities required by this adapter.
RanorexExceptionIf generating the adapter fails for another reason.

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