初始化 AssertAction 类的新实例。
命名空间: 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 AssertCondition, _
type As Type _
)
public AssertAction(
UITechnologyElement uiElement,
string propertyName,
string expectedValue,
AssertCondition propertyCondition,
Type type
)
public:
AssertAction(
UITechnologyElement^ uiElement,
String^ propertyName,
String^ expectedValue,
AssertCondition propertyCondition,
Type^ type
)
new :
uiElement:UITechnologyElement *
propertyName:string *
expectedValue:string *
propertyCondition:AssertCondition *
type:Type -> AssertAction
public function AssertAction(
uiElement : UITechnologyElement,
propertyName : String,
expectedValue : String,
propertyCondition : AssertCondition,
type : Type
)
参数
propertyName
类型:String属性的名称。
expectedValue
类型:String作为字符串的属性的预期值。
propertyCondition
类型:Microsoft.VisualStudio.TestTools.UITest.Common.AssertConditionAssertCondition 枚举的成员。
type
类型:TypeType,指示属性值的类型。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。