Επεξεργασία

Κοινή χρήση μέσω


SynchronizationAttribute Constructors

Definition

Initializes a new instance of the SynchronizationAttribute class.

Overloads

SynchronizationAttribute()

Initializes a new instance of the SynchronizationAttribute class with default values.

SynchronizationAttribute(Boolean)

Initializes a new instance of the SynchronizationAttribute class with a Boolean value indicating whether reentry is required.

SynchronizationAttribute(Int32)

Initializes a new instance of the SynchronizationAttribute class with a flag indicating the behavior of the object to which this attribute is applied.

SynchronizationAttribute(Int32, Boolean)

Initializes a new instance of the SynchronizationAttribute class with a flag indicating the behavior of the object to which this attribute is applied, and a Boolean value indicating whether reentry is required.

SynchronizationAttribute()

Initializes a new instance of the SynchronizationAttribute class with default values.

public:
 SynchronizationAttribute();
public SynchronizationAttribute ();
Public Sub New ()

Applies to

SynchronizationAttribute(Boolean)

Initializes a new instance of the SynchronizationAttribute class with a Boolean value indicating whether reentry is required.

public:
 SynchronizationAttribute(bool reEntrant);
public SynchronizationAttribute (bool reEntrant);
new System.Runtime.Remoting.Contexts.SynchronizationAttribute : bool -> System.Runtime.Remoting.Contexts.SynchronizationAttribute
Public Sub New (reEntrant As Boolean)

Parameters

reEntrant
Boolean

A Boolean value indicating whether reentry is required.

Remarks

If reentry is required, callouts out of the Context to which the current attribute is applied must be intercepted and serialized.

Applies to

SynchronizationAttribute(Int32)

Initializes a new instance of the SynchronizationAttribute class with a flag indicating the behavior of the object to which this attribute is applied.

public:
 SynchronizationAttribute(int flag);
public SynchronizationAttribute (int flag);
new System.Runtime.Remoting.Contexts.SynchronizationAttribute : int -> System.Runtime.Remoting.Contexts.SynchronizationAttribute
Public Sub New (flag As Integer)

Parameters

flag
Int32

An integer value indicating the behavior of the object to which this attribute is applied.

Exceptions

The flag parameter was not one of the defined flags.

Remarks

The flag parameter must be either NOT_SUPPORTED, SUPPORTED, REQUIRED, or REQUIRES_NEW.

Applies to

SynchronizationAttribute(Int32, Boolean)

Initializes a new instance of the SynchronizationAttribute class with a flag indicating the behavior of the object to which this attribute is applied, and a Boolean value indicating whether reentry is required.

public:
 SynchronizationAttribute(int flag, bool reEntrant);
public SynchronizationAttribute (int flag, bool reEntrant);
new System.Runtime.Remoting.Contexts.SynchronizationAttribute : int * bool -> System.Runtime.Remoting.Contexts.SynchronizationAttribute
Public Sub New (flag As Integer, reEntrant As Boolean)

Parameters

flag
Int32

An integer value indicating the behavior of the object to which this attribute is applied.

reEntrant
Boolean

true if reentry is required, and callouts must be intercepted and serialized; otherwise, false.

Exceptions

The flag parameter was not one of the defined flags.

Remarks

The flag parameter must be either NOT_SUPPORTED, SUPPORTED, REQUIRED, or REQUIRES_NEW.

Applies to