ValidationManager.GetValidators(Type) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
通过查找应用于类型的验证程序属性,返回与该类型关联的验证程序的数组。
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()
参数
返回
Validator 类的数组。
注解
如果 Validator 类的哈希表包含由 Type 指示的 type
,将返回 Validator 类的数组。
如果哈希表不包含由 Type 指示的 type
,将创建 Validator 类的一个新哈希表,然后返回 Validator 类的数组。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈