SynchronizationAttribute 建構函式

定義

初始化 SynchronizationAttribute 類別的新執行個體。

多載

SynchronizationAttribute()

使用預設值,初始化 SynchronizationAttribute 類別的新執行個體。

SynchronizationAttribute(Boolean)

使用指示是否需要重新進入的布林 (Boolean) 值,初始化 SynchronizationAttribute 類別的新執行個體。

SynchronizationAttribute(Int32)

使用指示套用這個屬性的物件之行為的旗標,初始化 SynchronizationAttribute 類別的新執行個體。

SynchronizationAttribute(Int32, Boolean)

使用指示套用這個屬性的物件之行為的旗標,和指示是否需要重新進入的布林值,初始化 SynchronizationAttribute 類別的新執行個體。

SynchronizationAttribute()

使用預設值,初始化 SynchronizationAttribute 類別的新執行個體。

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

適用於

SynchronizationAttribute(Boolean)

使用指示是否需要重新進入的布林 (Boolean) 值,初始化 SynchronizationAttribute 類別的新執行個體。

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

指示是否需要重新進入的布林值。

備註

如果需要重新輸入,則必須攔截並序列化套用目前屬性之 的 圖說文字 Context

適用於

SynchronizationAttribute(Int32)

使用指示套用這個屬性的物件之行為的旗標,初始化 SynchronizationAttribute 類別的新執行個體。

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

整數值,指出套用這個屬性之物件的行為。

例外狀況

flag 參數不是定義的其中一個旗標。

備註

參數 flag 必須是 NOT_SUPPORTEDSUPPORTEDREQUIREDREQUIRES_NEW

適用於

SynchronizationAttribute(Int32, Boolean)

使用指示套用這個屬性的物件之行為的旗標,和指示是否需要重新進入的布林值,初始化 SynchronizationAttribute 類別的新執行個體。

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

整數值,指出套用這個屬性之物件的行為。

reEntrant
Boolean

如果需要重新進入,和必須攔截並序列化 Callout,則為 true,否則為 false

例外狀況

flag 參數不是定義的其中一個旗標。

備註

參數 flag 必須是 NOT_SUPPORTEDSUPPORTEDREQUIREDREQUIRES_NEW

適用於