UITestPropertyProvider.GetPropertyValue Method

When overridden in a derived class, returns the value of the specified property from the given control.

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

Syntax

'Declaration
Public MustOverride Function GetPropertyValue ( _
    uiTestControl As UITestControl, _
    propertyName As String _
) As Object
public abstract Object GetPropertyValue(
    UITestControl uiTestControl,
    string propertyName
)
public:
virtual Object^ GetPropertyValue(
    UITestControl^ uiTestControl, 
    String^ propertyName
) abstract
abstract GetPropertyValue : 
        uiTestControl:UITestControl * 
        propertyName:string -> Object
public abstract function GetPropertyValue(
    uiTestControl : UITestControl, 
    propertyName : String
) : Object

Parameters

  • propertyName
    Type: String

    The name of the property.

Return Value

Type: Object
The value of the specified property from the given control.

.NET Framework Security

See Also

Reference

UITestPropertyProvider Class

Microsoft.VisualStudio.TestTools.UITesting Namespace

UITestControl

Other Resources

Enable Coded UI Testing of Your Controls