Class
AutomationReference

Represents an automation object reference that can point to a UIElement, a property or a method.

Definition

Namespace:ArtOfTest.WebAii.Silverlight

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
[DataContract]
[KnownType(typeof(AutomationProperty))]
public sealed class AutomationReference

Inheritance: objectAutomationReference

Constructors

AutomationReference(FrameworkElement)

Create an AutomationReference that is a FrameworkElement.

Declaration

cs-api-definition
public AutomationReference(FrameworkElement fx)

Parameters

fx

FrameworkElement

AutomationReference(ICommunicationProxy)

Create a new AutomationReference passing it the communication proxy.

Declaration

cs-api-definition
public AutomationReference(ICommunicationProxy proxy)

Parameters

proxy

ICommunicationProxy

AutomationReference(ICommunicationProxy, string)

Create a new AutomationReference passing it the communication proxy & object name

Declaration

cs-api-definition
public AutomationReference(ICommunicationProxy proxy, string objectName)

Parameters

proxy

ICommunicationProxy

objectName

string

AutomationReference(ICommunicationProxy, string, string)

Create a new AutomationRefernece passing it the communication proxy, object name and reference path.

Declaration

cs-api-definition
public AutomationReference(ICommunicationProxy proxy, string objectName, string refPath)

Parameters

proxy

ICommunicationProxy

objectName

string

refPath

string

Properties

ObjectName

Gets the object name of the reference

Declaration

cs-api-definition
[DataMember]
public string ObjectName { get; set; }

Property Value

string

Path

Gets the reference path

Declaration

cs-api-definition
[DataMember]
public string Path { get; set; }

Property Value

string

Properties

Gets or sets the list of AutomationProperties that is reference represents

Declaration

cs-api-definition
[DataMember]
public AutomationProperty[] Properties { get; set; }

Property Value

AutomationProperty[]

Methods

AppendProperty(AutomationProperty)

Appends an AutomationProperty to this reference.

Declaration

cs-api-definition
public void AppendProperty(AutomationProperty prop)

Parameters

prop

AutomationProperty

Clone()

Clone this AutomationReference.

Declaration

cs-api-definition
public AutomationReference Clone()

Returns

AutomationReference

Cloned reference.

EnsureReferencePath()

Ensure the reference path is built for the FrameworkElement

Declaration

cs-api-definition
public void EnsureReferencePath()

Equals(object)

Determines if this object is equal to another.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare to this one

Returns

bool

True if both objects are AutomationReferences, and both have ObjectName and Path properties defined, and both objects have the same values for those properties.

Overrides object.Equals(object)

GetHashCode()

Gets the hashcode for this AutomationReference object.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hashcode.

Overrides object.GetHashCode()