TerminateActivity.Error Property
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.
Gets or sets an error message to report to administrators, providing the reason for termination.
public:
property System::String ^ Error { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Browsable(true)]
public string Error { get; set; }
[<System.ComponentModel.Browsable(true)>]
member this.Error : string with get, set
Public Property Error As String
Property Value
An error message that provides the reason for the workflow instance termination. The default value is null
.
- Attributes
Examples
The following example demonstrates setting the Error property. This example is from the Suspend and Terminate SDK sample. For more information, see Suspend and Terminate Sample.
this.terminate.Error = null;
Me.terminate.Error = Nothing
Remarks
If this property is set when the activity is in runtime mode (the DesignMode property is set to false
) a ReadOnlyException is thrown.
Propagation of this error message is determined by the host (the instance manager or the persistence provider).
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기