ValidationManager 类

定义

警告

此 API 现已过时。

允许在编译过程中跨验证程序共享上下文信息,如属性验证、父活动等。Enables the sharing of contextual information, such as property validation, parent activity, and so on, across validators during the compilation process.

public ref class ValidationManager sealed : IServiceProvider
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class ValidationManager : IServiceProvider
type ValidationManager = class
    interface IServiceProvider
Public NotInheritable Class ValidationManager
Implements IServiceProvider
继承
ValidationManager
属性
实现

注解

备注

本材料讨论的类型和命名空间已废弃不用。This material discusses types and namespaces that are obsolete. 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

有关 ValidationManager 类的实例的初始属性值的列表,请参见 ValidationManager 构造函数。For a list of initial property values regarding an instance of the ValidationManager class, see the ValidationManager constructor.

构造函数

ValidationManager(IServiceProvider)

使用标识的服务提供程序初始化 ValidationManager 类的新实例。Initializes a new instance of the ValidationManager class using the identified service provider.

ValidationManager(IServiceProvider, Boolean)

使用标识的服务提供程序初始化 ValidationManager 类的新实例并指示是否应验证子 Activity 类。Initializes a new instance of the ValidationManager class using the identified service provider and indicates whether child Activity classes should be validated.

属性

Context

获取一个指示堆栈对象的值,验证程序可以使用该堆栈对象向嵌套的验证程序提供信息。Gets a value that indicates the stack object that a validator can use to make information available to nested validators.

ValidateChildActivities

获取一个指示是否应验证子 Activity 类的值。Gets a value that indicates whether child Activity classes should be validated.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetService(Type)

获取指定 Type 的服务对象。Gets the service object of the specified Type.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
GetValidators(Type)

通过查找应用于类型的验证程序属性,返回与该类型关联的验证程序的数组。Returns an array of validators that are associated with a type by looking up the validator attribute applied on the type.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于