InterfaceQueuingAttribute 构造函数

定义

初始化类的新实例 InterfaceQueuingAttribute ,启用队列支持。

重载

名称 说明
InterfaceQueuingAttribute()

初始化类的新实例InterfaceQueuingAttribute,并将属性EnabledInterface设置为其默认值。

InterfaceQueuingAttribute(Boolean)

初始化类的新实例 InterfaceQueuingAttribute ,可以选择禁用队列支持。

InterfaceQueuingAttribute()

初始化类的新实例InterfaceQueuingAttribute,并将属性EnabledInterface设置为其默认值。

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
接口 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

适用于