SynchronizationScopeActivity.SynchronizationHandles 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 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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για