Validator.ValidateProperties(ValidationManager, Object) 方法
定义
自动验证特定对象属性的帮助器方法。Helper method to automatically validate the specific objects properties.
public:
virtual System::Workflow::ComponentModel::Compiler::ValidationErrorCollection ^ ValidateProperties(System::Workflow::ComponentModel::Compiler::ValidationManager ^ manager, System::Object ^ obj);
public virtual System.Workflow.ComponentModel.Compiler.ValidationErrorCollection ValidateProperties (System.Workflow.ComponentModel.Compiler.ValidationManager manager, object obj);
abstract member ValidateProperties : System.Workflow.ComponentModel.Compiler.ValidationManager * obj -> System.Workflow.ComponentModel.Compiler.ValidationErrorCollection
override this.ValidateProperties : System.Workflow.ComponentModel.Compiler.ValidationManager * obj -> System.Workflow.ComponentModel.Compiler.ValidationErrorCollection
Public Overridable Function ValidateProperties (manager As ValidationManager, obj As Object) As ValidationErrorCollection
参数
- manager
- ValidationManager
与验证链接的验证管理器。The validation manager linked to the validation.
返回
包含此操作产生的验证错误的 ValidationErrorCollection。A ValidationErrorCollection that contains the validation errors resulting from this operation.
例外
manager 为空引用(在 Visual Basic 中为 Nothing)。manager is a null reference (Nothing in Visual Basic).
- 或 --or-
obj 为空引用 (Nothing)。obj is a null reference (Nothing).