This documentation is archived and is not being maintained.

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)

public static bool ConfigurationExists(
	IEnumerable<string> configList,
	string configNameToSearch
)

Parameters

configList
Type: System.Collections.Generic.IEnumerable<String>
An IEnumerable<T> list of string values.
configNameToSearch
Type: System.String
The configuration name to find.

Return Value

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

Show: