你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
FailActivity Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This activity will fail within its own scope and output a custom error message and error code. The error message and code can provided either as a string literal or as an expression that can be evaluated to a string at runtime. The activity scope can be the whole pipeline or a control activity (e.g. foreach, switch, until), if the fail activity is contained in it.
public class FailActivity : Azure.ResourceManager.DataFactory.Models.ControlActivity, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.DataFactory.Models.FailActivity>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.DataFactory.Models.FailActivity>
public class FailActivity : Azure.ResourceManager.DataFactory.Models.ControlActivity
type FailActivity = class
inherit ControlActivity
interface IJsonModel<FailActivity>
interface IPersistableModel<FailActivity>
type FailActivity = class
inherit ControlActivity
Public Class FailActivity
Inherits ControlActivity
Implements IJsonModel(Of FailActivity), IPersistableModel(Of FailActivity)
Public Class FailActivity
Inherits ControlActivity
- Inheritance
- Implements
Constructors
FailActivity(String, DataFactoryElement<String>, DataFactoryElement<String>) |
Initializes a new instance of FailActivity. |
Properties
AdditionalProperties |
Additional Properties To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions). To assign an already formatted json string to this property use FromString(String). Examples:
|
DependsOn |
Activity depends on condition. (Inherited from PipelineActivity) |
Description |
Activity description. (Inherited from PipelineActivity) |
ErrorCode |
The error code that categorizes the error type of the Fail activity. It can be dynamic content that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with resultType string). |
Message |
The error message that surfaced in the Fail activity. It can be dynamic content that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with resultType string). |
Name |
Activity name. (Inherited from PipelineActivity) |
OnInactiveMarkAs |
Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default. (Inherited from PipelineActivity) |
State |
Activity state. This is an optional property and if not provided, the state will be Active by default. (Inherited from PipelineActivity) |
UserProperties |
Activity user properties. (Inherited from PipelineActivity) |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | |
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | (Inherited from ControlActivity) |