Share via


PropertyExpressionObservableCollection.Add Method (String, String)

Add new property, value pair 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 _
)
public void Add(
    string propertyName,
    string propertyValue
)
public:
void Add(
    String^ propertyName, 
    String^ propertyValue
)
member Add : 
        propertyName:string * 
        propertyValue:string -> unit
public function Add(
    propertyName : String, 
    propertyValue : String
)

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