Table of Contents

Class QRemoteObject

Namespace
Ranorex.Plugin
Assembly
Ranorex.Plugin.Qt.dll
[TypeConverter(typeof(RemoteObject.RemoteObjectTypeConverter))]
public class QRemoteObject : RemoteObject, IDisposable
Inheritance
RemoteObject
QRemoteObject
Implements
Inherited Members

Constructors

QRemoteObject(long, string[], IQtBaseAutomation)

public QRemoteObject(long objId, string[] lineage, IQtBaseAutomation qtBase)

Parameters

objId long
lineage string[]
qtBase IQtBaseAutomation

Methods

Dispose(bool)

Releases resources or references acquired by the remote object. Get/Set/Invoke will no longer be called/callable on this instance.

protected override void Dispose(bool disposing)

Parameters

disposing bool

GetMethodAndPropertyInfos(List<PropertyInfo>, List<MethodInfo>)

Populates the supplied lists with object property and method metadata. Methods with get/set semantics should be mapped as properties.

protected override void GetMethodAndPropertyInfos(List<RemoteObject.PropertyInfo> props, List<RemoteObject.MethodInfo> methods)

Parameters

props List<RemoteObject.PropertyInfo>

The list of properties to populate.

methods List<RemoteObject.MethodInfo>

The list of properties to populate.

GetRawListItem(int)

Returns an item if the objects represents a list.

public override object GetRawListItem(int idx)

Parameters

idx int

The zero-based list index.

Returns

object

The list item.

GetRawProperty(PropertyInfo)

Returns the property value.

public override object GetRawProperty(RemoteObject.PropertyInfo internalProp)

Parameters

internalProp RemoteObject.PropertyInfo

Returns

object

The property value.

GetTechName()

A human-readable technology name (e.g. "WinForms")

protected override string GetTechName()

Returns

string

.

GetTypeLineage()

Returns a list of ancestor types for this objects, with the objects type/class name being the first item. If the target technology does not support this concept, return a list with at least one generic name.

protected override string[] GetTypeLineage()

Returns

string[]

.

InvokeRawMethod(MethodInfo, params object[])

Invokes a method with the supplied name and arguments. Throws if method invocation fails.

public override object InvokeRawMethod(RemoteObject.MethodInfo method, params object[] args)

Parameters

method RemoteObject.MethodInfo

The info object of the method to call.

args object[]

A list to arguments.

Returns

object

The return value of the method, if any.

SetRawProperty(PropertyInfo, object)

Sets the property to a value. Throws an exception if setting value fails or is not supported.

public override void SetRawProperty(RemoteObject.PropertyInfo internalProp, object value)

Parameters

internalProp RemoteObject.PropertyInfo
value object

The value of the property to set.