This documentation is archived and is not being maintained.
UITestControl.GetProperty Method
Visual Studio 2012
Gets the value of the specified property.
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
To access the properties of a UITestControl (for example, to get the count of items in a ListBox or to set the text on a button) you must use GetProperty and SetProperty to get and set the specific properties of the UITestControl. The propertyName parameter specifies the property to access.
To get the count of items in an HtmlList, use GetProperty together with the parameter ItemCount.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: