System.Messaging Reference (Document! X Sample)



WriteHandle Property
Gets the native handle used to send messages to the message queue.
Syntax
'Declaration
 
<BrowsableAttribute(False)>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<MessagingDescriptionAttribute("The native handle used to send messages to the message queue.")>
Public ReadOnly Property WriteHandle As IntPtr
'Usage
 
Dim instance As MessageQueue
Dim value As IntPtr
 
value = instance.WriteHandle
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[MessagingDescription("The native handle used to send messages to the message queue.")]
public IntPtr WriteHandle {get;}
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[MessagingDescription("The native handle used to send messages to the message queue.")]
public:
property IntPtr WriteHandle {
   IntPtr get();
}

Property Value

A handle to the native queue object that you use for sending messages to the queue.
Exceptions
ExceptionDescription
The message queue is not available for writing.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also