Expand Minimize

SynchronizationOption Enumeration

Specifies the type of automatic synchronization requested by the component.

Namespace:  System.EnterpriseServices
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

public enum SynchronizationOption

Member nameDescription
DisabledCOM+ ignores the synchronization requirements of the component when determining context for the object.
NotSupportedAn object with this value never participates in synchronization, regardless of the status of its caller. This setting is only available for components that are non-transactional and do not use just-in-time (JIT) activation.
RequiredEnsures that all objects created from the component are synchronized.
RequiresNewAn object with this value must participate in a new synchronization where COM+ manages contexts and apartments on behalf of all components involved in the call.
SupportedAn object with this value participates in synchronization, if it exists.

The following code example demonstrates the use of the SynchronizationOption type.

using System;
using System.EnterpriseServices;
using System.Reflection;

// References: 
// System.EnterpriseServices 

// An instance of this class will not join an activity, but can share its 
// caller's context even if its caller is configured as NotSupported, 
// Supported, Required, or RequiresNew.
public class SynchronizationAttribute_SynchronizationDisabled :

// An instance of this class will not join an activity, and will share its 
// caller's context only if its caller is also configured as NotSupported.
public class SynchronizationAttribute_SynchronizationNotSupported :

// An instance of this class will join its caller's activity if one exists.
public class SynchronizationAttribute_SynchronizationSupported :

// An instance of this class will join its caller's activity if one exists. 
// If not, a new activity will be created for it.
public class SynchronizationAttribute_SynchronizationRequired :

// A new activity will always be created for an instance of this class.
public class SynchronizationAttribute_SynchronizationRequiresNew :

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft