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 哈希表包含 Typetype其指示,则返回类数组 Validator

如果哈希表不包含 Typetype指示的哈希表,则会创建一个新的类哈希表 Validator ,然后返回类的 Validator 数组。

适用于