UITestPropertyProvider.GetPropertyDescriptor Method

Returns the property descriptor for the specified property of 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 GetPropertyDescriptor ( _
    uiTestControl As UITestControl, _
    propertyName As String _
) As UITestPropertyDescriptor
public abstract UITestPropertyDescriptor GetPropertyDescriptor(
    UITestControl uiTestControl,
    string propertyName
)
public:
virtual UITestPropertyDescriptor^ GetPropertyDescriptor(
    UITestControl^ uiTestControl, 
    String^ propertyName
) abstract
abstract GetPropertyDescriptor : 
        uiTestControl:UITestControl * 
        propertyName:string -> UITestPropertyDescriptor
public abstract function GetPropertyDescriptor(
    uiTestControl : UITestControl, 
    propertyName : String
) : UITestPropertyDescriptor

Parameters

  • propertyName
    Type: String

    The name of the property.

Return Value

Type: Microsoft.VisualStudio.TestTools.UITesting.UITestPropertyDescriptor
The requested property descriptor.

.NET Framework Security

See Also

Reference

UITestPropertyProvider Class

Microsoft.VisualStudio.TestTools.UITesting Namespace

UITestPropertyDescriptor

Other Resources

Enable Coded UI Testing of Your Controls