vb System.EnterpriseServices.ApplicationQueuingAttribute.QueueListenerEnabled类(方法)实例源码

下面列出了vb System.EnterpriseServices.ApplicationQueuingAttribute.QueueListenerEnabled 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.EnterpriseService   
' This example code requires that an ApplicationQueuing attribute be
' applied to the assembly, as shown below:
' [assembly: ApplicationQueuing]
' Get the ApplicationQueuingAttribute applied to the assembly.
Dim attribute As ApplicationQueuingAttribute = CType(attribute.GetCustomAttribute(System.Reflection.Assembly.GetExecutingAssembly(), GetType(ApplicationQueuingAttribute), False), ApplicationQueuingAttribute)

' Display the current value of the attribute's QueueListenerEnabled
' property.
MsgBox("ApplicationQueuingAttribute.QueueListenerEnabled: " & attribute.Enabled)

' Set the QueueListenerEnabled property value of the attribute.
attribute.QueueListenerEnabled = False

' Display the new value of the attribute's QueueListenerEnabled
' property.
MsgBox("ApplicationQueuingAttribute.QueueListenerEnabled: " & attribute.QueueListenerEnabled)


问题


面经


文章

微信
公众号

扫码关注公众号