ValidationManager.GetValidators(Type) 方法

定义

通过查找应用于类型的验证程序属性,返回与该类型关联的验证程序的数组。

public:
 cli::array <System::Workflow::ComponentModel::Compiler::Validator ^> ^ GetValidators(Type ^ type);
public System.Workflow.ComponentModel.Compiler.Validator[] GetValidators (Type type);
member this.GetValidators : Type -> System.Workflow.ComponentModel.Compiler.Validator[]
Public Function GetValidators (type As Type) As Validator()

参数

type
Type

要找的 Type 类的 Validator

返回

Validator 类的数组。

注解

如果 Validator 类的哈希表包含由 Type 指示的 type,将返回 Validator 类的数组。

如果哈希表不包含由 Type 指示的 type,将创建 Validator 类的一个新哈希表,然后返回 Validator 类的数组。

适用于