IUITestPropertyProvider.SetPropertyValue Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Sets the property of a UI Control.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Function SetPropertyValue ( _
uiTestControl As UITestControl, _
propertyName As String, _
value As Object _
) As Boolean
'Usage
Dim instance As IUITestPropertyProvider
Dim uiTestControl As UITestControl
Dim propertyName As String
Dim value As Object
Dim returnValue As Boolean
returnValue = instance.SetPropertyValue(uiTestControl, _
propertyName, value)
bool SetPropertyValue(
UITestControl uiTestControl,
string propertyName,
Object value
)
bool SetPropertyValue(
UITestControl^ uiTestControl,
String^ propertyName,
Object^ value
)
function SetPropertyValue(
uiTestControl : UITestControl,
propertyName : String,
value : Object
) : boolean
abstract SetPropertyValue :
uiTestControl:UITestControl *
propertyName:string *
value:Object -> bool
Parameters
- uiTestControl
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl
The target UI control.
- propertyName
Type: System.String
The name of the property for which we need to change the value.
- value
Type: System.Object
The new value for the property.
Return Value
Type: System.Boolean
Returns void.
.NET Framework Security
- 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.
See Also
Reference
IUITestPropertyProvider Interface