UITestPropertyProvider.SetPropertyValue Method

When overridden in a derived class, sets the specified property of the given control with the provided value.

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)

public abstract void SetPropertyValue(
	UITestControl uiTestControl,
	string propertyName,
	Object value
)

Parameters

uiTestControl
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl

A UITestControl control.

propertyName
Type: System.String

The name of the property.

value
Type: System.Object

The value for the property.

ExceptionCondition
NotSupportedException

This property provider does not support the specified property.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft