WorkflowRuntimeSection.ValidateOnCreate 属性

定义

获取或设置一个值,该值指示在创建工作流实例时是否发生验证。

public:
 property bool ValidateOnCreate { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("ValidateOnCreate", DefaultValue=true)]
public bool ValidateOnCreate { get; set; }
[<System.Configuration.ConfigurationProperty("ValidateOnCreate", DefaultValue=true)>]
member this.ValidateOnCreate : bool with get, set
Public Property ValidateOnCreate As Boolean

属性值

true 如果在创建时发生验证,则为否则,为 false.

属性

注解

如果此属性设置为 true,则每次 CreateWorkflow 调用工作流验证时都会执行。 如果发现验证错误,则会引发一个 WorkflowValidationFailedException

如果此属性设置为 falseCreateWorkflow 则创建工作流实例并跳过验证。 在这种情况下,主机应用程序必须确保工作流已正确配置或发生运行时错误。

此属性的默认值为 true.

适用于