Class
SilverlightCommand

For internal use only. Holds a command to be processed by the Silverlight client.

Definition

Namespace:ArtOfTest.WebAii.Silverlight

Assembly:ArtOfTest.WebAii.dll

Syntax:

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

Inheritance: objectSilverlightCommand

Constructors

SilverlightCommand(SilverlightCommandType, IAutomationPeer)

Declaration

cs-api-definition
public SilverlightCommand(SilverlightCommandType type, IAutomationPeer peer)

Parameters

type

SilverlightCommandType

peer

IAutomationPeer

Properties

Method

Gets / Sets the method to invoke

Declaration

cs-api-definition
[DataMember]
public AutomationMethod Method { get; set; }

Property Value

AutomationMethod

Property

The property to use

Declaration

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

Property Value

AutomationProperty

Reference

Get or set the reference

Declaration

cs-api-definition
[DataMember]
public AutomationReference Reference { get; set; }

Property Value

AutomationReference

Reference2

Get / Set secondary reference

Declaration

cs-api-definition
[DataMember]
public AutomationReference Reference2 { get; set; }

Property Value

AutomationReference

Type

Get or set the command type

Declaration

cs-api-definition
[DataMember]
public SilverlightCommandType Type { get; set; }

Property Value

SilverlightCommandType

Value

Additional info for this command

Declaration

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

Property Value

string

Methods

AsString()

Return this command as a string.

Declaration

cs-api-definition
public string AsString()

Returns

string

FromString(string)

Declaration

cs-api-definition
public static SilverlightCommand FromString(string s)

Parameters

s

string

Returns

SilverlightCommand