Partager via


PropertyExpressionObservableCollection.Add Method (array<String )

Add multiple property, value pairs 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 ( _
    ParamArray nameValuePairs As String() _
)
public void Add(
    params string[] nameValuePairs
)
public:
void Add(
    ... array<String^>^ nameValuePairs
)
member Add : 
        nameValuePairs:string[] -> unit
public function Add(
    ... nameValuePairs : String[]
)

Parameters

  • nameValuePairs
    Type: array<String[]

    Name value pairs to be added.

Remarks

e.g. PropertyExpressionCollection collection = new PropertyExpressionCollection(); collection.Add("ControlType", "Hyperlink", "Id", "foo");

.NET Framework Security

See Also

Reference

PropertyExpressionObservableCollection Class

Add Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace