SynchronizationAttribute SynchronizationAttribute SynchronizationAttribute SynchronizationAttribute Constructors

定义

重载

SynchronizationAttribute() SynchronizationAttribute() SynchronizationAttribute()

使用默认值初始化 SynchronizationAttribute 类的新实例。Initializes a new instance of the SynchronizationAttribute class with default values.

SynchronizationAttribute(Boolean) SynchronizationAttribute(Boolean) SynchronizationAttribute(Boolean) SynchronizationAttribute(Boolean)

用指示是否需要重入的布尔值来初始化 SynchronizationAttribute 类的新实例。Initializes a new instance of the SynchronizationAttribute class with a Boolean value indicating whether reentry is required.

SynchronizationAttribute(Int32) SynchronizationAttribute(Int32) SynchronizationAttribute(Int32) SynchronizationAttribute(Int32)

用指示该特性所应用于的对象的行为的标志来初始化 SynchronizationAttribute 类的新实例。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) SynchronizationAttribute(Int32, Boolean) SynchronizationAttribute(Int32, Boolean) SynchronizationAttribute(Int32, Boolean)

用指示该特性所应用于的对象的行为的标志和指示是否需要重入的布尔值来初始化 SynchronizationAttribute 类的新实例。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() SynchronizationAttribute() SynchronizationAttribute()

使用默认值初始化 SynchronizationAttribute 类的新实例。Initializes a new instance of the SynchronizationAttribute class with default values.

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

SynchronizationAttribute(Boolean) SynchronizationAttribute(Boolean) SynchronizationAttribute(Boolean) SynchronizationAttribute(Boolean)

用指示是否需要重入的布尔值来初始化 SynchronizationAttribute 类的新实例。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)

参数

reEntrant
Boolean Boolean Boolean Boolean

一个布尔值,指示是否需要重入。A Boolean value indicating whether reentry is required.

注解

如果需要重入, 则必须截获和Context序列化当前属性应用于的标注。If reentry is required, callouts out of the Context to which the current attribute is applied must be intercepted and serialized.

SynchronizationAttribute(Int32) SynchronizationAttribute(Int32) SynchronizationAttribute(Int32) SynchronizationAttribute(Int32)

用指示该特性所应用于的对象的行为的标志来初始化 SynchronizationAttribute 类的新实例。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)

参数

flag
Int32 Int32 Int32 Int32

一个整数值,指示该特性所应用于的对象的行为。An integer value indicating the behavior of the object to which this attribute is applied.

异常

flag 参数不是定义的标志之一。The flag parameter was not one of the defined flags.

注解

参数必须NOT_SUPPORTED是、 SUPPORTED 、或REQUIRES_NEWREQUIRED flagThe flag parameter must be either NOT_SUPPORTED, SUPPORTED, REQUIRED, or REQUIRES_NEW.

SynchronizationAttribute(Int32, Boolean) SynchronizationAttribute(Int32, Boolean) SynchronizationAttribute(Int32, Boolean) SynchronizationAttribute(Int32, Boolean)

用指示该特性所应用于的对象的行为的标志和指示是否需要重入的布尔值来初始化 SynchronizationAttribute 类的新实例。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)

参数

flag
Int32 Int32 Int32 Int32

一个整数值,指示该特性所应用于的对象的行为。An integer value indicating the behavior of the object to which this attribute is applied.

reEntrant
Boolean Boolean Boolean Boolean

如果需要重入且必须截获和序列化标注,则为 true;否则为 falsetrue if reentry is required, and callouts must be intercepted and serialized; otherwise, false.

异常

flag 参数不是定义的标志之一。The flag parameter was not one of the defined flags.

注解

参数必须NOT_SUPPORTED是、 SUPPORTED 、或REQUIRES_NEWREQUIRED flagThe flag parameter must be either NOT_SUPPORTED, SUPPORTED, REQUIRED, or REQUIRES_NEW.

适用于