Freigeben über


UITestControl.WaitForControlPropertyEqual-Methode (String, Object, Int32)

Blockiert den aktuellen Thread, bis die angegebene Eigenschaft dieses Steuerelements dem angegebenen Wert entspricht oder bis das angegebene Timeout abläuft.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Function WaitForControlPropertyEqual ( _
    propertyName As String, _
    propertyValue As Object, _
    millisecondsTimeout As Integer _
) As Boolean
public bool WaitForControlPropertyEqual(
    string propertyName,
    Object propertyValue,
    int millisecondsTimeout
)
public:
bool WaitForControlPropertyEqual(
    String^ propertyName, 
    Object^ propertyValue, 
    int millisecondsTimeout
)
member WaitForControlPropertyEqual : 
        propertyName:string * 
        propertyValue:Object * 
        millisecondsTimeout:int -> bool 
public function WaitForControlPropertyEqual(
    propertyName : String, 
    propertyValue : Object, 
    millisecondsTimeout : int
) : boolean

Parameter

  • millisecondsTimeout
    Typ: System.Int32
    Die Anzahl der Millisekunden vor dem Timeout.

Rückgabewert

Typ: System.Boolean
true, wenn die angegebene Eigenschaft vor dem Timeout propertyValue entspricht. Andernfalls false.

.NET Framework-Sicherheit

Siehe auch

Referenz

UITestControl Klasse

WaitForControlPropertyEqual-Überladung

Microsoft.VisualStudio.TestTools.UITesting-Namespace