使用 ValidationRule 实现的 Type 作为参数,初始化 ValidationRuleReference 类的新实例。
命名空间:  Microsoft.VisualStudio.TestTools.WebTesting
程序集:  Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)
语法
声明
Public Sub New ( _
    type As Type _
)
public ValidationRuleReference(
    Type type
)
public:
ValidationRuleReference(
    Type^ type
)
new : 
        type:Type -> ValidationRuleReference
public function ValidationRuleReference(
    type : Type
)
参数
- type
 类型:System.Type
 ValidationRule 实现的 Type。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。