RanorexRanorex Documentation
Create Method (adapterType, element)
NamespacesRanorexAdapterCreate(Type, Element)
Constructs an adapter of a specific type for a given element.
Declaration Syntax
C#Visual BasicVisual C++
public static Adapter Create(
	Type adapterType,
	Element element
)
Public Shared Function Create ( _
	adapterType As Type, _
	element As Element _
) As Adapter
public:
static Adapter^ Create(
	Type^ adapterType, 
	Element^ element
)
Parameters
adapterType (Type)
The type of adapter to construct. The supplied type must inherit from Adapter, but most not be the Adapter type itself.
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.
RanorexCoreExceptionThrown if the adapterType does not inherit from Adapter.
RanorexExceptionIf generating the adapter fails for another reason.

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