AssertAction 构造函数 (UITechnologyElement, String, String, AssertCondition, Type)
初始化 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
)
参数
- uiElement
类型:Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElement
UITechnologyElement 。
- propertyName
类型:System.String
属性的名称。
- expectedValue
类型:System.String
作为字符串的属性的预期值。
- propertyCondition
类型:Microsoft.VisualStudio.TestTools.UITest.Common.AssertCondition
AssertCondition 枚举的一个成员。
- type
类型:System.Type
Type ,指示属性值的类型。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。