ValidationSettings 类

定义

表示可对 Validate(Activity) 将展现的行为进行自定义的设置集合。Represents a collection of settings that customize the behavior that Validate(Activity) will exhibit. 它还使活动用户能够将策略约束应用于工作流。It also enables the activity user to apply policy constraints to a workflow.

public ref class ValidationSettings
public class ValidationSettings
type ValidationSettings = class
Public Class ValidationSettings
继承
ValidationSettings

构造函数

ValidationSettings()

创建 ValidationSettings 类的新实例。Creates a new instance of the ValidationSettings class.

属性

AdditionalConstraints

获取类型/约束对的字典。Gets a dictionary of type-constraint pairs. 添加至字典的每个附加约束将应用于要验证的工作流中指定类型的每个活动。Each additional constraint added to the dictionary will be applied to every activity of the specify type in the workflow to validate.

CancellationToken

获取或设置用于通知是否应取消活动的取消标记。Gets or sets the cancellation token used to notify should the activity be cancelled.

Environment

获取或设置与此验证设置关联的变量和参数的环境。Gets or sets the environment of variables and arguments associated with this validation settings.

OnlyUseAdditionalConstraints

获取或设置一个值,该值指示是否要以独占方式使用附加验证约束来验证工作流。Gets or sets a value that indicates whether the additional validation constraints are to be used exclusively to validate the workflow. 如果设置为 true,则将忽略活动本身内包含的所有验证。If set to true, all the validation contained inside the activity itself will be ignored.

PrepareForRuntime

获取或设置一个值,该值指示是否为运行时准备好此实例。Gets or sets a value that indicates whether this instance is prepared for runtime.

SingleLevel

获取或设置一个值,该值指示是否对提供的活动以及所提供活动的所有子级和孙级进行验证,或者验证程序是否应只验证到提供的活动。Gets or sets a value that indicates whether the supplied activity and all the children and sub-children of the supplied activity are validated, or if the validator should validate only to the supplied activity.

SkipValidatingRootConfiguration

获取或设置一个值,该值指示根配置是否验证主题Gets or sets a value that indicates whether the root configuration is not subject for validation.

方法

Equals(Object)

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

(继承自 Object)
GetHashCode()

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

(继承自 Object)
GetType()

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

(继承自 Object)
MemberwiseClone()

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

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于