Share via


PropertyExpressionCollection.Add Method

Definition

Overloads

Add(PropertyExpression)

Adds the provided property expression to the collection.

Add(String[])

Adds a property expression to the collection for each pair in the provided array of name-value pairs.

Add(String, String)

Adds a property express to the collection by using the provided property name and property value.

Add(String, String, PropertyExpressionOperator)

Adds a property expression by using the provided property name, value, and operator.

Add(PropertyExpression)

Adds the provided property expression to the collection.

public:
 virtual void Add(Microsoft::VisualStudio::TestTools::UITesting::PropertyExpression ^ propertyExpression);
public void Add (Microsoft.VisualStudio.TestTools.UITesting.PropertyExpression propertyExpression);
abstract member Add : Microsoft.VisualStudio.TestTools.UITesting.PropertyExpression -> unit
override this.Add : Microsoft.VisualStudio.TestTools.UITesting.PropertyExpression -> unit
Public Sub Add (propertyExpression As PropertyExpression)

Parameters

propertyExpression
PropertyExpression

The PropertyExpression object to add to the collection.

Implements

Applies to

Add(String[])

Adds a property expression to the collection for each pair in the provided array of name-value pairs.

public:
 void Add(... cli::array <System::String ^> ^ nameValuePairs);
public void Add (params string[] nameValuePairs);
member this.Add : string[] -> unit
Public Sub Add (ParamArray nameValuePairs As String())

Parameters

nameValuePairs
String[]

An array of name-value pairs.

Applies to

Add(String, String)

Adds a property express to the collection by using the provided property name and property value.

public:
 void Add(System::String ^ propertyName, System::String ^ propertyValue);
public void Add (string propertyName, string propertyValue);
member this.Add : string * string -> unit
Public Sub Add (propertyName As String, propertyValue As String)

Parameters

propertyName
String

A property name.

propertyValue
String

A property value.

Applies to

Add(String, String, PropertyExpressionOperator)

Adds a property expression by using the provided property name, value, and operator.

public:
 void Add(System::String ^ propertyName, System::String ^ propertyValue, Microsoft::VisualStudio::TestTools::UITesting::PropertyExpressionOperator conditionOperator);
public void Add (string propertyName, string propertyValue, Microsoft.VisualStudio.TestTools.UITesting.PropertyExpressionOperator conditionOperator);
member this.Add : string * string * Microsoft.VisualStudio.TestTools.UITesting.PropertyExpressionOperator -> unit
Public Sub Add (propertyName As String, propertyValue As String, conditionOperator As PropertyExpressionOperator)

Parameters

propertyName
String

The name of the property.

propertyValue
String

The property value to search for.

conditionOperator
PropertyExpressionOperator

The operator to use to compare the values (either the values are equal or the property value contains the provided property value).

Applies to