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、SUPPORTEDREQUIRED、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、SUPPORTEDREQUIRED、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 名前空間



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

辞書ショートカット

すべての辞書の索引

「SynchronizationAttribute」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS