使用提供的名称、值、不匹配类型和警告等级初始化 SettingMismatch 类的新实例。
命名空间:  Microsoft.VisualStudio.TestTools.UITest.Common
程序集:  Microsoft.VisualStudio.TestTools.UITest.Common(在 Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)
语法
声明
Public Sub New ( _
    name As String, _
    value As String, _
    mismatchType As MismatchType, _
    warningLevel As Integer _
)
public SettingMismatch(
    string name,
    string value,
    MismatchType mismatchType,
    int warningLevel
)
public:
SettingMismatch(
    String^ name, 
    String^ value, 
    MismatchType mismatchType, 
    int warningLevel
)
new : 
        name:string * 
        value:string * 
        mismatchType:MismatchType * 
        warningLevel:int -> SettingMismatch
public function SettingMismatch(
    name : String, 
    value : String, 
    mismatchType : MismatchType, 
    warningLevel : int
)
参数
- name
 类型:System.String
 源设置的名称。
- value
 类型:System.String
 源设置的值
- mismatchType
 类型:Microsoft.VisualStudio.TestTools.UITest.Common.MismatchType
 不匹配的类型(SourceOnly 或 TargetOnly)。
- warningLevel
 类型:System.Int32
 设置的警告等级。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。