ValidationEventArgs.IsValid 属性

获取或设置一个值指示是否该请求通过验证。

命名空间:  Microsoft.VisualStudio.TestTools.WebTesting
程序集:  Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

语法

声明
Public Property IsValid As Boolean
    Get
    Set
public bool IsValid { get; set; }
public:
property bool IsValid {
    bool get ();
    void set (bool value);
}
member IsValid : bool with get, set
function get IsValid () : boolean
function set IsValid (value : boolean)

属性值

类型:System.Boolean
如果请求通过验证,则为 true;否则为 false。

备注

如果事件处理程序引发了未经处理的异常,则 IsValid 将自动设置为 false。

.NET Framework 安全性

请参见

参考

ValidationEventArgs 类

Microsoft.VisualStudio.TestTools.WebTesting 命名空间