Share via


UITestControlCollection.GetPropertyValuesOfControls<T> Method

Gets the property values for given property name for all controls in the collection.

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

Syntax

'Declaration
Public Function GetPropertyValuesOfControls(Of T) ( _
    propertyName As String _
) As T()
public T[] GetPropertyValuesOfControls<T>(
    string propertyName
)
public:
generic<typename T>
array<T>^ GetPropertyValuesOfControls(
    String^ propertyName
)
member GetPropertyValuesOfControls : 
        propertyName:string -> 'T[] 
JScript does not support generic types or methods.

Type Parameters

  • T
    Type of value of property.

Parameters

  • propertyName
    Type: String

    Name of property whose value has to be returned.

Return Value

Type: array<T[]
The array of property values for all controls in the collection.

.NET Framework Security

See Also

Reference

UITestControlCollection Class

Microsoft.VisualStudio.TestTools.UITesting Namespace