SuspendActivity::Error Property

 

Gets or sets an error message to report to administrators providing the reason for suspension.

Namespace:   System.Workflow.ComponentModel
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public:
[BrowsableAttribute(true)]
property String^ Error {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

An error message that provides the reason for the workflow instance suspension. The default value is null.

Propagation of this error message is determined by the host (the instance manager or the persistence provider).

This example illustrates initializing the Error property of a SuspendActivity, and other concepts discussed elsewhere in this type.

This code example is part of the Suspend and Terminate SDK sample and is from the SuspendAndTerminateWorkflow.Designer.cs file. For more information, see Using Suspend and Terminate.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: