共用方式為


UITest.CompareEnvironments 方法

比較兩個指定的 UITestEnvironment 物件,並傳回不符項目的集合。

命名空間:  Microsoft.VisualStudio.TestTools.UITest.Common
組件:  Microsoft.VisualStudio.TestTools.UITest.Common (在 Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)

語法

'宣告
Public Shared Function CompareEnvironments ( _
    source As UITestEnvironment, _
    target As UITestEnvironment _
) As Collection(Of SettingMismatch)
public static Collection<SettingMismatch> CompareEnvironments(
    UITestEnvironment source,
    UITestEnvironment target
)
public:
static Collection<SettingMismatch^>^ CompareEnvironments(
    UITestEnvironment^ source, 
    UITestEnvironment^ target
)
static member CompareEnvironments : 
        source:UITestEnvironment * 
        target:UITestEnvironment -> Collection<SettingMismatch> 
public static function CompareEnvironments(
    source : UITestEnvironment, 
    target : UITestEnvironment
) : Collection<SettingMismatch>

參數

傳回值

型別:System.Collections.ObjectModel.Collection<SettingMismatch>
不符項目的集合。

.NET Framework 安全性

請參閱

參考

UITest 類別

Microsoft.VisualStudio.TestTools.UITest.Common 命名空間

UITestEnvironment

SettingMismatch