SynchronizationOption 列挙体とは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SynchronizationOption 列挙体の意味・解説 

SynchronizationOption 列挙体

コンポーネント必要な自動同期種類指定します

名前空間: System.EnterpriseServices
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文構文

<SerializableAttribute> _
Public Enumeration SynchronizationOption
Dim instance As SynchronizationOption
[SerializableAttribute] 
public enum SynchronizationOption
[SerializableAttribute] 
public enum class SynchronizationOption
/** @attribute SerializableAttribute() */ 
public enum SynchronizationOption
SerializableAttribute 
public enum SynchronizationOption
メンバメンバ
使用例使用例

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
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からSynchronizationOption 列挙体を検索した結果を表示しています。
Weblioに収録されているすべての辞書からSynchronizationOption 列挙体を検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からSynchronizationOption 列挙体 を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「SynchronizationOption 列挙体」の関連用語

SynchronizationOption 列挙体のお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SynchronizationOption 列挙体のページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS