InterfaceQueuingAttribute 建構函式

定義

初始化類別的新實例 InterfaceQueuingAttribute ,支援排隊。

多載

名稱 Description
InterfaceQueuingAttribute()

初始化一個新的類別實例InterfaceQueuingAttribute,將 和 Enabled 屬性設Interface為預設值。

InterfaceQueuingAttribute(Boolean)

初始化類別的新實例 InterfaceQueuingAttribute ,並可選擇性地停用佇列支援。

InterfaceQueuingAttribute()

初始化一個新的類別實例InterfaceQueuingAttribute,將 和 Enabled 屬性設Interface為預設值。

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

範例

以下程式碼範例會建立一個新的 InterfaceQueuingAttribute

[InterfaceQueuing]
interface class IInterfaceQueuingAttribute_Ctor{};
[InterfaceQueuing]
public interface IInterfaceQueuingAttribute_Ctor
{
}
<InterfaceQueuing()>  _
Public Interface IInterfaceQueuingAttribute_Ctor
End Interface 'IInterfaceQueuingAttribute_Ctor

備註

下表顯示 InterfaceQueuingAttribute實例的初始屬性值。

房產 價值觀
已啟用 true
Interface null

適用於

InterfaceQueuingAttribute(Boolean)

初始化類別的新實例 InterfaceQueuingAttribute ,並可選擇性地停用佇列支援。

public:
 InterfaceQueuingAttribute(bool enabled);
public InterfaceQueuingAttribute(bool enabled);
new System.EnterpriseServices.InterfaceQueuingAttribute : bool -> System.EnterpriseServices.InterfaceQueuingAttribute
Public Sub New (enabled As Boolean)

參數

enabled
Boolean

true以支援排隊;否則,。 false

範例

以下程式碼範例會建立一個新的 InterfaceQueuingAttribute

[InterfaceQueuing(true)]
interface class IInterfaceQueuingAttribute_Ctor_Bool{};
[InterfaceQueuing(true)]
public interface IInterfaceQueuingAttribute_Ctor_Bool
{
}
<InterfaceQueuing(True)>  _
Public Interface IInterfaceQueuingAttribute_Ctor_Bool
End Interface 'IInterfaceQueuingAttribute_Ctor_Bool

適用於