Partager via


FilterCondition.TryParse Method

Returns a value that indicates whether the provided query element string can be parsed into a FilterCondition.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
Public Shared Function TryParse ( _
    queryElement As String, _
    <OutAttribute> ByRef condition As FilterCondition _
) As Boolean
public static bool TryParse(
    string queryElement,
    out FilterCondition condition
)
public:
static bool TryParse(
    String^ queryElement, 
    [OutAttribute] FilterCondition^% condition
)
static member TryParse : 
        queryElement:string * 
        condition:FilterCondition byref -> bool
public static function TryParse(
    queryElement : String, 
    condition : FilterCondition
) : boolean

Parameters

  • queryElement
    Type: String

    A query element string.

Return Value

Type: Boolean
true if the provided query element string can be parsed; otherwise, false.

.NET Framework Security

See Also

Reference

FilterCondition Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace