TerminateActivity.ErrorProperty Field
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.
Represents the DependencyProperty that targets the Error property.
public: static initonly System::Workflow::ComponentModel::DependencyProperty ^ ErrorProperty;
public static readonly System.Workflow.ComponentModel.DependencyProperty ErrorProperty;
staticval mutable ErrorProperty : System.Workflow.ComponentModel.DependencyProperty
Public Shared ReadOnly ErrorProperty As DependencyProperty
Field Value
Examples
This example illustrates initializing the Error property for a TerminateActivity, and other things discussed elsewhere within 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.
[System.Diagnostics.DebuggerNonUserCode()]
private void InitializeComponent()
{
this.CanModifyActivities = true;
this.suspend = new System.Workflow.ComponentModel.SuspendActivity();
this.consoleMessage = new System.Workflow.Activities.CodeActivity();
this.terminate = new System.Workflow.ComponentModel.TerminateActivity();
//
// suspend
//
this.suspend.Error = null;
this.suspend.Name = "suspend";
//
// ConsoleMessage
//
this.consoleMessage.Name = "consoleMessage";
this.consoleMessage.ExecuteCode += new System.EventHandler(this.OnConsoleMessage);
//
// terminate
//
this.terminate.Error = null;
this.terminate.Name = "terminate";
//
// SuspendAndTerminateWorkflow
//
this.Activities.Add(this.suspend);
this.Activities.Add(this.consoleMessage);
this.Activities.Add(this.terminate);
this.Name = "SuspendAndTerminateWorkflow";
this.CanModifyActivities = false;
}
<System.Diagnostics.DebuggerNonUserCode()> _
Private Sub InitializeComponent()
Me.CanModifyActivities = True
Me.suspend = New System.Workflow.ComponentModel.SuspendActivity()
Me.consoleMessage = New System.Workflow.Activities.CodeActivity()
Me.terminate = New System.Workflow.ComponentModel.TerminateActivity()
'
' suspend
'
Me.suspend.Error = Nothing
Me.suspend.Name = "suspend"
'
' ConsoleMessage
'
Me.consoleMessage.Name = "consoleMessage"
AddHandler Me.consoleMessage.ExecuteCode, AddressOf Me.OnConsoleMessage
'
' terminate
'
Me.terminate.Error = Nothing
Me.terminate.Name = "terminate"
'
' SuspendAndTerminateWorkflow
'
Me.Activities.Add(Me.suspend)
Me.Activities.Add(Me.consoleMessage)
Me.Activities.Add(Me.terminate)
Me.Name = "SuspendAndTerminateWorkflow"
Me.CanModifyActivities = False
End Sub
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET