SynchronizationAttributeとは? わかりやすく解説

SynchronizationAttribute クラス

コンポーネントの同期値を設定します。このクラスは継承できません。

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

<ComVisibleAttribute(False)> _
<AttributeUsageAttribute(AttributeTargets.Class, Inherited:=True)> _
Public NotInheritable Class
 SynchronizationAttribute
    Inherits Attribute
Dim instance As SynchronizationAttribute
[ComVisibleAttribute(false)] 
[AttributeUsageAttribute(AttributeTargets.Class, Inherited=true)]
 
public sealed class SynchronizationAttribute
 : Attribute
[ComVisibleAttribute(false)] 
[AttributeUsageAttribute(AttributeTargets::Class, Inherited=true)]
 
public ref class SynchronizationAttribute sealed
 : public Attribute
/** @attribute ComVisibleAttribute(false) */ 
/** @attribute AttributeUsageAttribute(AttributeTargets.Class, Inherited=true)
 */ 
public final class SynchronizationAttribute
 extends Attribute
ComVisibleAttribute(false) 
AttributeUsageAttribute(AttributeTargets.Class, Inherited=true)
 
public final class SynchronizationAttribute
 extends Attribute
解説解説
使用例使用例

SynchronizationAttribute 型の使用方法のコード例を次に示します。

Imports System
Imports System.EnterpriseServices
Imports System.Reflection


' References:
' System.EnterpriseServices

' This is equivalent to [Synchronization(SynchronizationOption.Required)].
<Synchronization()>  _
Public Class SynchronizationAttribute_Ctor
    Inherits ServicedComponent
End Class 'SynchronizationAttribute_Ctor

<Synchronization(SynchronizationOption.Disabled)>  _
Public Class SynchronizationAttribute_Ctor_SynchronizationOption
    Inherits ServicedComponent
End Class 'SynchronizationAttribute_Ctor_SynchronizationOption

<Synchronization(SynchronizationOption.RequiresNew)>  _
Public Class SynchronizationAttribute_Value
    Inherits ServicedComponent
    
    Public Sub ValueExample() 
        ' Get the SynchronizationAttribute applied to the class.
        Dim attribute As SynchronizationAttribute
 = CType(Attribute.GetCustomAttribute(Me.GetType(), GetType(SynchronizationAttribute),
 False), SynchronizationAttribute)
        
        ' Display the value of the attribute's Value property.
        MsgBox("SynchronizationAttribute.Value: "
 & attribute.Value)
    
    End Sub 'ValueExample
End Class 'SynchronizationAttribute_Value

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

// References:
// System.EnterpriseServices

// This is equivalent to [Synchronization(SynchronizationOption.Required)].
[Synchronization]
public class SynchronizationAttribute_Ctor
 : ServicedComponent
{
}

[Synchronization(SynchronizationOption.Disabled)]
public class SynchronizationAttribute_Ctor_SynchronizationOption
 : ServicedComponent
{
}

[Synchronization(SynchronizationOption.RequiresNew)]
public class SynchronizationAttribute_Value
 : ServicedComponent
{
    public void ValueExample()
    {
        // Get the SynchronizationAttribute applied to the class.
        SynchronizationAttribute attribute =
            (SynchronizationAttribute)Attribute.GetCustomAttribute(
            this.GetType(),
            typeof(SynchronizationAttribute),
            false);

        // Display the value of the attribute's Value property.
        Console.WriteLine("SynchronizationAttribute.Value: {0}",
            attribute.Value);
    }
}

import System.*;
import System.EnterpriseServices.*;
import System.Reflection.*;

// References:
// System.EnterpriseServices

// This is equivalent to [Synchronization(SynchronizationOption.Required)].
/** @attribute Synchronization()
 */
public class SynchronizationAttribute_Ctor
 extends ServicedComponent
{
} //SynchronizationAttribute_Ctor

/** @attribute Synchronization(SynchronizationOption.Disabled)
 */
public class SynchronizationAttribute_Ctor_SynchronizationOption
 
    extends ServicedComponent
{
} //SynchronizationAttribute_Ctor_SynchronizationOption

/** @attribute Synchronization(SynchronizationOption.RequiresNew)
 */
public class SynchronizationAttribute_Value
 extends ServicedComponent
{
    public void ValueExample()
    {
        // Get the SynchronizationAttribute applied to the class.
        SynchronizationAttribute attribute = (SynchronizationAttribute)(
            Attribute.GetCustomAttribute(this.GetType(),
            SynchronizationAttribute.class.ToType(), false));

        // Display the value of the attribute's Value property.
        Console.WriteLine("SynchronizationAttribute.Value: {0}",
            attribute.get_Value());
    } //ValueExample
} //SynchronizationAttribute_Value
継承階層継承階層
System.Object
   System.Attribute
    System.EnterpriseServices.SynchronizationAttribute
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

SynchronizationAttribute クラス

現在のコンテキスト、および同じインスタンスを共有するすべてのコンテキストの同期ドメインを適用します。

名前空間: System.Runtime.Remoting.Contexts
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

<SerializableAttribute> _
<AttributeUsageAttribute(AttributeTargets.Class)> _
<ComVisibleAttribute(True)> _
Public Class SynchronizationAttribute
    Inherits ContextAttribute
    Implements IContributeServerContextSink, IContributeClientContextSink
Dim instance As SynchronizationAttribute
[SerializableAttribute] 
[AttributeUsageAttribute(AttributeTargets.Class)] 
[ComVisibleAttribute(true)] 
public class SynchronizationAttribute : ContextAttribute,
 IContributeServerContextSink, IContributeClientContextSink
[SerializableAttribute] 
[AttributeUsageAttribute(AttributeTargets::Class)] 
[ComVisibleAttribute(true)] 
public ref class SynchronizationAttribute :
 public ContextAttribute, IContributeServerContextSink, IContributeClientContextSink
/** @attribute SerializableAttribute() */ 
/** @attribute AttributeUsageAttribute(AttributeTargets.Class) */ 
/** @attribute ComVisibleAttribute(true) */ 
public class SynchronizationAttribute extends
 ContextAttribute implements IContributeServerContextSink, IContributeClientContextSink
SerializableAttribute 
AttributeUsageAttribute(AttributeTargets.Class) 
ComVisibleAttribute(true) 
public class SynchronizationAttribute extends
 ContextAttribute implements IContributeServerContextSink, IContributeClientContextSink
解説解説

この属性をオブジェクトに適用する場合、このプロパティのインスタンスを共有するすべてのコンテキスト内で実行できるスレッドは 1 つだけです。それぞれのコンテキストの着信呼び出しを受け取り、シリアル化するシンクを提供することによって実行されます。プロパティが再エントリとしてマークされている場合は、コールアウトも受け取られます。コールアウトを受け取ることにより、待機している他のスレッドが同期ドメインに参加できるようになり、最大限のスループットを実現できます。

メモメモ

SynchronizationAttribute という名前のクラスが 2 つあります。1 つは System.Runtime.Remoting.Contexts 名前空間に格納され、もう 1 つは System.EnterpriseServices 名前空間に格納されています。System.EnterpriseServices.SynchronizationAttribute クラスは、同期呼び出しだけをサポートし、サービス コンポーネントだけで使用できます。サービス コンポーネントの詳細については、「サービス コンポーネントの概要」を参照してください。System.Runtime.Remoting.Contexts.SynchronizationAttribute は、同期呼び出しおよび非同期呼び出しをサポートし、コンテキスト バインド オブジェクトだけで使用できます。コンテキスト バインド オブジェクトの詳細については ContextBoundObject クラスのトピックを参照してください。

使用例使用例

SynchronizationAttribute の使用方法については、次のコード例を参照してください。プログラム例の全体については、AsyncResult クラスのトピックの例を参照してください。

' Context-bound type with the Synchronization context attribute.
<Synchronization()> Public Class SampleSyncronized
   Inherits ContextBoundObject
   
   ' A method that does some work, and returns the square of the given
 number.
   Public Function Square(i As
 Integer) As Integer
      
      Console.Write("The hash of the thread executing ")
      Console.WriteLine("SampleSyncronized.Square is: {0}",
 Thread.CurrentThread.GetHashCode())
      Return i * i
   End Function 'Square

End Class 'SampleSyncronized
// Context-bound type with the Synchronization context attribute.
[Synchronization()]
public class SampleSyncronized : ContextBoundObject
 {

    // A method that does some work, and returns the square of the given
 number.
    public int Square(int
 i)  {

        Console.Write("The hash of the thread executing ");
        Console.WriteLine("SampleSyncronized.Square is: {0}", 
                             Thread.CurrentThread.GetHashCode());
        return i*i;
    }
}
// Context-bound type with the Synchronization context attribute.

[Synchronization]
public ref class SampleSyncronized: public
 ContextBoundObject
{
public:

   // A method that does some work, and returns the square of the given
 number.
   int Square( int i )
   {
      Console::Write( "The hash of the thread executing " );
      Console::WriteLine( "SampleSyncronized::Square is: {0}", Thread::CurrentThread->GetHashCode()
 );
      return i * i;
   }

};

// Context-bound type with the Synchronization context attribute.
/** @attribute Synchronization()
 */
public class SampleSyncronized extends ContextBoundObject
{
    // A method that does some work, and returns the square of the given
 number.
    public int Square(int
 i)
    {
        Console.Write("The hash of the thread executing ");
        Console.WriteLine("SampleSyncronized.Square is: {0}",
            (Int32)System.Threading.Thread.get_CurrentThread().GetHashCode());
        return i * i;
    } //Square
} //SampleSyncronized
.NET Framework のセキュリティ.NET Framework のセキュリティ
継承階層継承階層
System.Object
   System.Attribute
     System.Runtime.Remoting.Contexts.ContextAttribute
      System.Runtime.Remoting.Contexts.SynchronizationAttribute
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SynchronizationAttribute メンバ
System.Runtime.Remoting.Contexts 名前空間

SynchronizationAttribute コンストラクタ ()


SynchronizationAttribute コンストラクタ ()

既定の SynchronizationOption を使用して、SynchronizationAttribute クラスの新しいインスタンスを初期化します。

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

Dim instance As New SynchronizationAttribute
public SynchronizationAttribute ()
public:
SynchronizationAttribute ()
public SynchronizationAttribute ()
public function SynchronizationAttribute ()
解説解説
使用例使用例

新しい SynchronizationAttribute を作成するコード例を次に示します。

' This is equivalent to [Synchronization(SynchronizationOption.Required)].
<Synchronization()>  _
Public Class SynchronizationAttribute_Ctor
    Inherits ServicedComponent
End Class 'SynchronizationAttribute_Ctor
// This is equivalent to [Synchronization(SynchronizationOption.Required)].
[Synchronization]
public class SynchronizationAttribute_Ctor
 : ServicedComponent
{
}
// This is equivalent to [Synchronization(SynchronizationOption.Required)].
/** @attribute Synchronization()
 */
public class SynchronizationAttribute_Ctor
 extends ServicedComponent
{
} //SynchronizationAttribute_Ctor
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SynchronizationAttribute クラス
SynchronizationAttribute メンバ
System.EnterpriseServices 名前空間

SynchronizationAttribute コンストラクタ (Boolean)

再エントリが必要かどうかを示す Boolean 値を指定して、SynchronizationAttribute クラスの新しいインスタンスを初期化します。

名前空間: System.Runtime.Remoting.Contexts
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Dim reEntrant As Boolean

Dim instance As New SynchronizationAttribute(reEntrant)
public SynchronizationAttribute (
    bool reEntrant
)
public:
SynchronizationAttribute (
    bool reEntrant
)
public SynchronizationAttribute (
    boolean reEntrant
)
public function SynchronizationAttribute (
    reEntrant : boolean
)

パラメータ

reEntrant

再エントリが必要かどうかを示す Boolean 値。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SynchronizationAttribute クラス
SynchronizationAttribute メンバ
System.Runtime.Remoting.Contexts 名前空間

SynchronizationAttribute コンストラクタ (Int32)

この属性を適用するオブジェクトの動作を示すフラグを指定して、SynchronizationAttribute クラスの新しいインスタンスを初期化します。

名前空間: System.Runtime.Remoting.Contexts
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Dim flag As Integer

Dim instance As New SynchronizationAttribute(flag)
public SynchronizationAttribute (
    int flag
)
public:
SynchronizationAttribute (
    int flag
)
public SynchronizationAttribute (
    int flag
)
public function SynchronizationAttribute (
    flag : int
)

パラメータ

flag

この属性を適用するオブジェクトの動作を示す整数値。

例外例外
解説解説

flag パラメータは、NOT_SUPPORTED、SUPPORTED、REQUIRED、REQUIRES_NEW のいずれかにする必要があります。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SynchronizationAttribute クラス
SynchronizationAttribute メンバ
System.Runtime.Remoting.Contexts 名前空間

SynchronizationAttribute コンストラクタ (Int32, Boolean)

この属性を適用するオブジェクトの動作を示すフラグと、再エントリが必要かどうかを示す Boolean 値を指定して、SynchronizationAttribute クラスの新しいインスタンスを初期化します。

名前空間: System.Runtime.Remoting.Contexts
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

public SynchronizationAttribute (
    int flag,
    bool reEntrant
)
public:
SynchronizationAttribute (
    int flag, 
    bool reEntrant
)
public SynchronizationAttribute (
    int flag, 
    boolean reEntrant
)
public function SynchronizationAttribute (
    flag : int, 
    reEntrant : boolean
)

パラメータ

flag

この属性を適用するオブジェクトの動作を示す整数値。

reEntrant

再エントリが必要であり、コールアウトを受け取り、シリアル化する必要がある場合は true。それ以外の場合は false。

例外例外
解説解説

flag パラメータは、NOT_SUPPORTED、SUPPORTED、REQUIRED、REQUIRES_NEW のいずれかにする必要があります。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SynchronizationAttribute クラス
SynchronizationAttribute メンバ
System.Runtime.Remoting.Contexts 名前空間

SynchronizationAttribute コンストラクタ (SynchronizationOption)

SynchronizationOption を指定して、SynchronizationAttribute クラスの新しいインスタンスを初期化します。

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

Public Sub New ( _
    val As SynchronizationOption _
)
Dim val As SynchronizationOption

Dim instance As New SynchronizationAttribute(val)
public SynchronizationAttribute (
    SynchronizationOption val
)
public:
SynchronizationAttribute (
    SynchronizationOption val
)
public SynchronizationAttribute (
    SynchronizationOption val
)
public function SynchronizationAttribute (
    val : SynchronizationOption
)

パラメータ

val

SynchronizationOption 値の 1 つ。

使用例使用例

新しい SynchronizationAttribute を作成するコード例を次に示します。

<Synchronization(SynchronizationOption.Disabled)>  _
Public Class SynchronizationAttribute_Ctor_SynchronizationOption
    Inherits ServicedComponent
End Class 'SynchronizationAttribute_Ctor_SynchronizationOption
[Synchronization(SynchronizationOption.Disabled)]
public class SynchronizationAttribute_Ctor_SynchronizationOption
 : ServicedComponent
{
}
/** @attribute Synchronization(SynchronizationOption.Disabled)
 */
public class SynchronizationAttribute_Ctor_SynchronizationOption
 
    extends ServicedComponent
{
} //SynchronizationAttribute_Ctor_SynchronizationOption
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SynchronizationAttribute クラス
SynchronizationAttribute メンバ
System.EnterpriseServices 名前空間

SynchronizationAttribute コンストラクタ

SynchronizationAttribute クラスの新しいインスタンスを初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
SynchronizationAttribute () 既定の SynchronizationOption を使用して、SynchronizationAttribute クラスの新しいインスタンスを初期化します。
SynchronizationAttribute (SynchronizationOption) SynchronizationOption を指定して、SynchronizationAttribute クラスの新しいインスタンスを初期化します。
参照参照

関連項目

SynchronizationAttribute クラス
SynchronizationAttribute メンバ
System.EnterpriseServices 名前空間

SynchronizationAttribute コンストラクタ

SynchronizationAttribute クラスの新しいインスタンスを初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
SynchronizationAttribute () SynchronizationAttribute クラスの新しいインスタンスを既定値で初期化します。
SynchronizationAttribute (Boolean) 再エントリが必要かどうかを示す Boolean 値を指定して、SynchronizationAttribute クラスの新しいインスタンスを初期化します。
SynchronizationAttribute (Int32) この属性を適用するオブジェクトの動作を示すフラグを指定して、SynchronizationAttribute クラスの新しいインスタンスを初期化します。
SynchronizationAttribute (Int32, Boolean) この属性を適用するオブジェクトの動作を示すフラグと、再エントリが必要かどうかを示す Boolean 値を指定して、SynchronizationAttribute クラスの新しいインスタンスを初期化します。
参照参照

関連項目

SynchronizationAttribute クラス
SynchronizationAttribute メンバ
System.Runtime.Remoting.Contexts 名前空間

SynchronizationAttribute フィールド


SynchronizationAttribute プロパティ


SynchronizationAttribute プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ IsReEntrant 再エントリが必要かどうかを示す Boolean 値を取得または設定します。
パブリック プロパティ Locked この SynchronizationAttribute のインスタンスを実装する Context がロックされているかどうかを示す Boolean 値を取得または設定します。
パブリック プロパティ Name  コンテキスト属性の名前を取得します。 ( ContextAttribute から継承されます。)
パブリック プロパティ TypeId  派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。 ( Attribute から継承されます。)
参照参照

関連項目

SynchronizationAttribute クラス
System.Runtime.Remoting.Contexts 名前空間

SynchronizationAttribute メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttribute  オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttributes  オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 ( Attribute から継承されます。)
パブリック メソッド GetHashCode  このインスタンスのハッシュ コードを返します。 ( Attribute から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 ( Object から継承されます。)
パブリック メソッド IsDefaultAttribute  派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 ( Attribute から継承されます。)
パブリック メソッド IsDefined  オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 ( Attribute から継承されます。)
パブリック メソッド Match  派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 ( Attribute から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String を返します。 ( Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

SynchronizationAttribute クラス
System.EnterpriseServices 名前空間

SynchronizationAttribute メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます。 ( ContextAttribute から継承されます。)
パブリック メソッド Freeze  コンテキストが固定されるときに呼び出されます。 ( ContextAttribute から継承されます。)
パブリック メソッド GetClientContextSink CallOut シンクを作成し、リモート処理呼び出しのクライアント エンドのコンテキスト境界で提供されたシンク チェインの前にこれをチェインします。
パブリック メソッド GetCustomAttribute  オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttributes  オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 ( Attribute から継承されます。)
パブリック メソッド GetHashCode  ContextAttribute のこのインスタンスのハッシュコードを返します。 ( ContextAttribute から継承されます。)
パブリック メソッド GetPropertiesForNewContext オーバーライドされます。 Synchronized コンテキスト プロパティを、指定した IConstructionCallMessage に追加します。
パブリック メソッド GetServerContextSink 同期されたディスパッチ シンクを作成し、リモート処理呼び出しのサーバー エンドのコンテキスト境界で提供されたシンク チェインの前にこれをチェインします。
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 ( Object から継承されます。)
パブリック メソッド IsContextOK オーバーライドされます。 コンテキスト パラメータがコンテキスト属性の要件を満たしているかどうかを示す Boolean 値を返します。
パブリック メソッド IsDefaultAttribute  派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 ( Attribute から継承されます。)
パブリック メソッド IsDefined  オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 ( Attribute から継承されます。)
パブリック メソッド IsNewContextOK  コンテキスト プロパティと新しいコンテキストとの間に互換性があるかどうかを示す Boolean 値を返します。 ( ContextAttribute から継承されます。)
パブリック メソッド Match  派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 ( Attribute から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String を返します。 ( Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

SynchronizationAttribute クラス
System.Runtime.Remoting.Contexts 名前空間

SynchronizationAttribute メンバ

コンポーネントの同期値を設定します。このクラスは継承できません。

SynchronizationAttribute データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド SynchronizationAttribute オーバーロードされます。 SynchronizationAttribute クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttribute  オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 (Attribute から継承されます。)
パブリック メソッド GetCustomAttributes  オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 (Attribute から継承されます。)
パブリック メソッド GetHashCode  このインスタンスのハッシュ コードを返します。 (Attribute から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 (Object から継承されます。)
パブリック メソッド IsDefaultAttribute  派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 (Attribute から継承されます。)
パブリック メソッド IsDefined  オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 (Attribute から継承されます。)
パブリック メソッド Match  派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 (Attribute から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String を返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

SynchronizationAttribute クラス
System.EnterpriseServices 名前空間

SynchronizationAttribute メンバ

現在のコンテキスト、および同じインスタンスを共有するすべてのコンテキストの同期ドメインを適用します。

SynchronizationAttribute データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド SynchronizationAttribute オーバーロードされます。 SynchronizationAttribute クラスの新しいインスタンスを初期化します。
パブリック フィールドパブリック フィールド
プロテクト フィールドプロテクト フィールド
  名前 説明
プロテクト フィールド AttributeName  コンテキスト属性の名前を示します。(ContextAttribute から継承されます。)
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ IsReEntrant 再エントリが必要かどうかを示す Boolean 値を取得または設定します。
パブリック プロパティ Locked この SynchronizationAttribute のインスタンスを実装する Context がロックされているかどうかを示す Boolean 値を取得または設定します。
パブリック プロパティ Name  コンテキスト属性の名前を取得します。(ContextAttribute から継承されます。)
パブリック プロパティ TypeId  派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。(Attribute から継承されます。)
パブリック メソッドパブリック メソッド
( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます。 ( ContextAttribute から継承されます。)
パブリック メソッド Freeze  コンテキストが固定されるときに呼び出されます。 (ContextAttribute から継承されます。)
パブリック メソッド GetClientContextSink CallOut シンクを作成し、リモート処理呼び出しのクライアント エンドのコンテキスト境界で提供されたシンク チェインの前にこれをチェインします。
パブリック メソッド GetCustomAttribute  オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 (Attribute から継承されます。)
パブリック メソッド GetCustomAttributes  オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 (Attribute から継承されます。)
パブリック メソッド GetHashCode  ContextAttribute のこのインスタンスのハッシュコードを返します。 (ContextAttribute から継承されます。)
パブリック メソッド GetPropertiesForNewContext オーバーライドされます。 Synchronized コンテキスト プロパティを、指定した IConstructionCallMessage に追加します。
パブリック メソッド GetServerContextSink 同期されたディスパッチ シンクを作成し、リモート処理呼び出しのサーバー エンドのコンテキスト境界で提供されたシンク チェインの前にこれをチェインします。
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 (Object から継承されます。)
パブリック メソッド IsContextOK オーバーライドされます。 コンテキスト パラメータがコンテキスト属性の要件を満たしているかどうかを示す Boolean 値を返します。
パブリック メソッド IsDefaultAttribute  派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 (Attribute から継承されます。)
パブリック メソッド IsDefined  オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 (Attribute から継承されます。)
パブリック メソッド IsNewContextOK  コンテキスト プロパティと新しいコンテキストとの間に互換性があるかどうかを示す Boolean 値を返します。 (ContextAttribute から継承されます。)
パブリック メソッド Match  派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 (Attribute から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String を返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

SynchronizationAttribute クラス
System.Runtime.Remoting.Contexts 名前空間



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「SynchronizationAttribute」の関連用語

SynchronizationAttributeのお隣キーワード
検索ランキング

   

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



SynchronizationAttributeのページの著作権

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

©2026 GRAS Group, Inc.RSS