Partager via


PropertyExpressionObservableCollection.Add Method (String, String, PropertyExpressionOperator)

Add new property, value pair and a PropertyExpressionOperator to property collection. If the property with same name already exists, then updates its value.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)

Syntax

'Declaration
Public Sub Add ( _
    propertyName As String, _
    propertyValue As String, _
    conditionOperator As PropertyExpressionOperator _
)
public void Add(
    string propertyName,
    string propertyValue,
    PropertyExpressionOperator conditionOperator
)
public:
void Add(
    String^ propertyName, 
    String^ propertyValue, 
    PropertyExpressionOperator conditionOperator
)
member Add : 
        propertyName:string * 
        propertyValue:string * 
        conditionOperator:PropertyExpressionOperator -> unit
public function Add(
    propertyName : String, 
    propertyValue : String, 
    conditionOperator : PropertyExpressionOperator
)

Parameters

  • propertyName
    Type: String

    The name of the property.

  • propertyValue
    Type: String

    Value of the property.

.NET Framework Security

See Also

Reference

PropertyExpressionObservableCollection Class

Add Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace