SynchronizationOption 列挙体
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)

<SerializableAttribute> _ Public Enumeration SynchronizationOption

メンバ名 | 説明 | |
---|---|---|
Disabled | COM+ は、オブジェクトのコンテキストを確認する場合に、コンポーネントの同期要件を無視します。 | |
NotSupported | この値が指定されたオブジェクトは、その呼び出し元のステータスにかかわらず、同期には関与しません。この設定は、非トランザクションでありジャスト イン タイム (JIT: Just-In-Time) アクティベーションを使用しないコンポーネントに限り使用できます。 | |
Required | コンポーネントから作成されたすべてのオブジェクトの同期をとります。 | |
RequiresNew | この値が指定されたオブジェクトは、呼び出しに関係するすべてのコンポーネントに代わって COM+ がコンテキストとアパートメントを管理する新しい同期に関与する必要があります。 | |
Supported | この値が指定されたオブジェクトが存在する場合、このオブジェクトは同期に関与します。 |

SynchronizationOption 型の使用方法のコード例を次に示します。
Imports System Imports System.EnterpriseServices Imports 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. <Synchronization(SynchronizationOption.Disabled)> _ Public Class SynchronizationAttribute_SynchronizationDisabled Inherits ServicedComponent End 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. <Synchronization(SynchronizationOption.NotSupported)> _ Public Class SynchronizationAttribute_SynchronizationNotSupported Inherits ServicedComponent End Class 'SynchronizationAttribute_SynchronizationNotSupported ' An instance of this class will join its caller's activity if one exists. <Synchronization(SynchronizationOption.Supported)> _ Public Class SynchronizationAttribute_SynchronizationSupported Inherits ServicedComponent End 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. <Synchronization(SynchronizationOption.Required)> _ Public Class SynchronizationAttribute_SynchronizationRequired Inherits ServicedComponent End Class 'SynchronizationAttribute_SynchronizationRequired ' A new activity will always be created for an instance of this class. <Synchronization(SynchronizationOption.RequiresNew)> _ Public Class SynchronizationAttribute_SynchronizationRequiresNew Inherits ServicedComponent End Class 'SynchronizationAttribute_SynchronizationRequiresNew
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. [Synchronization(SynchronizationOption.Disabled)] public class SynchronizationAttribute_SynchronizationDisabled : ServicedComponent { } // 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. [Synchronization(SynchronizationOption.NotSupported)] public class SynchronizationAttribute_SynchronizationNotSupported : ServicedComponent { } // An instance of this class will join its caller's activity if one exists. [Synchronization(SynchronizationOption.Supported)] public class SynchronizationAttribute_SynchronizationSupported : ServicedComponent { } // An instance of this class will join its caller's activity if one exists. // If not, a new activity will be created for it. [Synchronization(SynchronizationOption.Required)] public class SynchronizationAttribute_SynchronizationRequired : ServicedComponent { } // A new activity will always be created for an instance of this class. [Synchronization(SynchronizationOption.RequiresNew)] public class SynchronizationAttribute_SynchronizationRequiresNew : ServicedComponent { }
#using <System.EnterpriseServices.dll> using namespace System; using namespace System::EnterpriseServices; // 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. [Synchronization(SynchronizationOption::Disabled)] public ref class SynchronizationAttribute_SynchronizationDisabled : public ServicedComponent { }; // 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. [Synchronization(SynchronizationOption::NotSupported)] public ref class SynchronizationAttribute_SynchronizationNotSupported : public ServicedComponent { }; // An instance of this class will join its caller's activity if one exists. [Synchronization(SynchronizationOption::Supported)] public ref class SynchronizationAttribute_SynchronizationSupported : public ServicedComponent { }; // An instance of this class will join its caller's activity if one exists. // If not, a new activity will be created for it. [Synchronization(SynchronizationOption::Required)] public ref class SynchronizationAttribute_SynchronizationRequired : public ServicedComponent { }; // A new activity will always be created for an instance of this class. [Synchronization(SynchronizationOption::RequiresNew)] public ref class SynchronizationAttribute_SynchronizationRequiresNew : public ServicedComponent { };
import System.*; import System.EnterpriseServices.*; import 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. /** @attribute Synchronization(SynchronizationOption.Disabled) */ public class SynchronizationAttribute_SynchronizationDisabled extends ServicedComponent { } //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. /** @attribute Synchronization(SynchronizationOption.NotSupported) */ public class SynchronizationAttribute_SynchronizationNotSupported extends ServicedComponent { } //SynchronizationAttribute_SynchronizationNotSupported // An instance of this class will join its caller's activity if one exists. /** @attribute Synchronization(SynchronizationOption.Supported) */ public class SynchronizationAttribute_SynchronizationSupported extends ServicedComponent { } //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. /** @attribute Synchronization(SynchronizationOption.Required) */ public class SynchronizationAttribute_SynchronizationRequired extends ServicedComponent { } //SynchronizationAttribute_SynchronizationRequired // A new activity will always be created for an instance of this class. /** @attribute Synchronization(SynchronizationOption.RequiresNew) */ public class SynchronizationAttribute_SynchronizationRequiresNew extends ServicedComponent { } //SynchronizationAttribute_SynchronizationRequiresNew

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からSynchronizationOption 列挙体を検索する場合は、下記のリンクをクリックしてください。

- SynchronizationOption 列挙体のページへのリンク