ClassAutomationReference
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:
[DataContract]
[KnownType(typeof(AutomationProperty))]
public sealed class AutomationReference
Inheritance: objectAutomationReference
Constructors
AutomationReference(FrameworkElement)
Create an AutomationReference that is a FrameworkElement.
Declaration
public AutomationReference(FrameworkElement fx)
Parameters
fx
AutomationReference(ICommunicationProxy)
Create a new AutomationReference passing it the communication proxy.
Declaration
public AutomationReference(ICommunicationProxy proxy)
Parameters
proxy
AutomationReference(ICommunicationProxy, string)
Create a new AutomationReference passing it the communication proxy & object name
Declaration
public AutomationReference(ICommunicationProxy proxy, string objectName)
Parameters
proxy
objectName
AutomationReference(ICommunicationProxy, string, string)
Create a new AutomationRefernece passing it the communication proxy, object name and reference path.
Declaration
public AutomationReference(ICommunicationProxy proxy, string objectName, string refPath)
Parameters
proxy
objectName
refPath
Properties
ObjectName
Gets the object name of the reference
Declaration
[DataMember]
public string ObjectName { get; set; }
Property Value
Path
Gets the reference path
Properties
Gets or sets the list of AutomationProperties that is reference represents
Declaration
[DataMember]
public AutomationProperty[] Properties { get; set; }
Property Value
Methods
AppendProperty(AutomationProperty)
Appends an AutomationProperty to this reference.
Declaration
public void AppendProperty(AutomationProperty prop)
Parameters
prop
Clone()
Clone this AutomationReference.
Declaration
public AutomationReference Clone()
Returns
Cloned reference.
EnsureReferencePath()
Ensure the reference path is built for the FrameworkElement
Declaration
public void EnsureReferencePath()
Equals(object)
Determines if this object is equal to another.
Declaration
public override bool Equals(object obj)
Parameters
obj
The object to compare to this one
Returns
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
GetHashCode()
Gets the hashcode for this AutomationReference object.