ValidateFormField.ExpectedValue 属性
更新:2007 年 11 月
获取或设置窗体字段所需的值。
命名空间: Microsoft.VisualStudio.TestTools.WebTesting.Rules
程序集: Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)
语法
声明
Public Property ExpectedValue As String
用法
Dim instance As ValidateFormField
Dim value As String
value = instance.ExpectedValue
instance.ExpectedValue = value
public string ExpectedValue { get; set; }
public:
property String^ ExpectedValue {
String^ get ();
void set (String^ value);
}
public function get ExpectedValue () : String
public function set ExpectedValue (value : String)
属性值
窗体字段的所需值。
权限
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。