編集

次の方法で共有


SynchronizationScopeActivity.SynchronizationHandles Property

Definition

Gets or sets a collection of strings that represents handles that determine the synchronization behavior of this SynchronizationScopeActivity. When two or more SynchronizationScopeActivity activities share a synchronization handle, they execute in a serial fashion; there is no interleaved execution of the child activities within them.

public:
 property System::Collections::Generic::ICollection<System::String ^> ^ SynchronizationHandles { System::Collections::Generic::ICollection<System::String ^> ^ get(); void set(System::Collections::Generic::ICollection<System::String ^> ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.SynchronizationHandlesTypeConverter))]
public System.Collections.Generic.ICollection<string> SynchronizationHandles { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.SynchronizationHandlesTypeConverter))>]
member this.SynchronizationHandles : System.Collections.Generic.ICollection<string> with get, set
Public Property SynchronizationHandles As ICollection(Of String)

Property Value

A multiline string that contains synchronization handles for this instance.

Attributes

Examples

The following example demonstrates setting the SynchronizationHandles property. This example is from the Nested Exception Handlers SDK sample. For more information, see Nested Exception Handlers Sample.

this.synchronizationScopeActivity.Activities.Add(this.throwsException);
this.synchronizationScopeActivity.Name = "synchronizationScopeActivity";
this.synchronizationScopeActivity.SynchronizationHandles = null;
Me.synchronizationScopeActivity.Activities.Add(Me.throwsException)
Me.synchronizationScopeActivity.Name = "synchronizationScopeActivity"
Me.synchronizationScopeActivity.SynchronizationHandles = Nothing

Applies to