共用方式為


SettingMismatch 建構函式 (String, String, MismatchType, Int32)

使用提供的不符名稱、值、類型與警告層級,初始化 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
)

參數

  • warningLevel
    型別:System.Int32
    設定的警告層級。

.NET Framework 安全性

請參閱

參考

SettingMismatch 類別

SettingMismatch 多載

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

MismatchType