SearchConfiguration.ConfigurationExists Method

Returns a value that indicates whether the given configuration name occurs in the provided configuration list.

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

Syntax

'Declaration
Public Shared Function ConfigurationExists ( _
    configList As IEnumerable(Of String), _
    configNameToSearch As String _
) As Boolean
public static bool ConfigurationExists(
    IEnumerable<string> configList,
    string configNameToSearch
)
public:
static bool ConfigurationExists(
    IEnumerable<String^>^ configList, 
    String^ configNameToSearch
)
static member ConfigurationExists : 
        configList:IEnumerable<string> * 
        configNameToSearch:string -> bool
public static function ConfigurationExists(
    configList : IEnumerable<String>, 
    configNameToSearch : String
) : boolean

Parameters

  • configList
    Type: IEnumerable<String>

    An IEnumerable list of string values.

  • configNameToSearch
    Type: String

    The configuration name to find.

Return Value

Type: Boolean
true if the configuration name is found; otherwise, false.

.NET Framework Security

See Also

Reference

SearchConfiguration Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace