Share via


UITest.CompareStoredEnvironmentWithCurrentEnvironment Method

Compares the recorder configuration, if it exists, with the system environment that was captured at startup, and returns a collection of mismatches.

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

Syntax

'Declaration
Public Function CompareStoredEnvironmentWithCurrentEnvironment As Collection(Of SettingMismatch)
public Collection<SettingMismatch> CompareStoredEnvironmentWithCurrentEnvironment()
public:
Collection<SettingMismatch^>^ CompareStoredEnvironmentWithCurrentEnvironment()
member CompareStoredEnvironmentWithCurrentEnvironment : unit -> Collection<SettingMismatch> 
public function CompareStoredEnvironmentWithCurrentEnvironment() : Collection<SettingMismatch>

Return Value

Type: Collection<SettingMismatch>
A collection of mismatches, or nulla null reference (Nothing in Visual Basic) if the configuration is not available in this UI test.

.NET Framework Security

See Also

Reference

UITest Class

Microsoft.VisualStudio.TestTools.UITest.Common Namespace

SettingMismatch