共用方式為


StringAssertAction 建構函式 (UITechnologyElement, String, String, StringAssertCondition, StringComparison)

初始化 StringAssertAction 類別的新執行個體。

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

語法

'宣告
Public Sub New ( _
    uiElement As UITechnologyElement, _
    propertyName As String, _
    expectedValue As String, _
    propertyCondition As StringAssertCondition, _
    comparison As StringComparison _
)
public StringAssertAction(
    UITechnologyElement uiElement,
    string propertyName,
    string expectedValue,
    StringAssertCondition propertyCondition,
    StringComparison comparison
)
public:
StringAssertAction(
    UITechnologyElement^ uiElement, 
    String^ propertyName, 
    String^ expectedValue, 
    StringAssertCondition propertyCondition, 
    StringComparison comparison
)
new : 
        uiElement:UITechnologyElement * 
        propertyName:string * 
        expectedValue:string * 
        propertyCondition:StringAssertCondition * 
        comparison:StringComparison -> StringAssertAction
public function StringAssertAction(
    uiElement : UITechnologyElement, 
    propertyName : String, 
    expectedValue : String, 
    propertyCondition : StringAssertCondition, 
    comparison : StringComparison
)

參數

.NET Framework 安全性

請參閱

參考

StringAssertAction 類別

StringAssertAction 多載

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

UITechnologyElement

StringAssertCondition

StringComparison