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: 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.