Share via


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

  • propertyName
    Type: System.String
    The name of the property for which we need to change the value.

Return Value

Type: System.Boolean
Returns void.

.NET Framework Security

See Also

Reference

IUITestPropertyProvider Interface

IUITestPropertyProvider Members

Microsoft.VisualStudio.TestTools.UITesting Namespace