InterfaceQueuingAttribute Class
Assembly: System.EnterpriseServices (in system.enterpriseservices.dll)
'Declaration <ComVisibleAttribute(False)> _ <AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Interface, Inherited:=True, AllowMultiple:=True)> _ Public NotInheritable Class InterfaceQueuingAttribute Inherits Attribute 'Usage Dim instance As InterfaceQueuingAttribute
/** @attribute ComVisibleAttribute(false) */ /** @attribute AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface, Inherited=true, AllowMultiple=true) */ public final class InterfaceQueuingAttribute extends Attribute
ComVisibleAttribute(false) AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface, Inherited=true, AllowMultiple=true) public final class InterfaceQueuingAttribute extends Attribute
Calls on this interface will be queued using Message Queuing.
To mark an interface as queued, apply this attribute to the interface using the following syntax: [InterfaceQueuing].
The member methods of a queued interface must fulfill the requirements for queued method calls, such as having no out or ref parameters.
For more information about using attributes, see Extending Metadata Using Attributes.
The following code example shows how to use the InterfaceQueuingAttribute attribute.
The following code example shows how to mark a COM+ application as queued at compile time by using the ApplicationQueuing attribute, and enable the COM+ listener by setting the QueueListenerEnabled to true
The following code example shows how to use BindToMoniker to run the queued moniker, to get an instance of the recorder, call the method that will be recorded, and force the release of the recorder object, to send the message to the queue.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.