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
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro