MessageQueue.ReadHandle 属性

定义

获取用于从消息队列中读取消息的本机句柄。

public:
 property IntPtr ReadHandle { IntPtr get(); };
[System.ComponentModel.Browsable(false)]
[System.Messaging.MessagingDescription("MQ_ReadHandle")]
public IntPtr ReadHandle { get; }
[<System.ComponentModel.Browsable(false)>]
[<System.Messaging.MessagingDescription("MQ_ReadHandle")>]
member this.ReadHandle : nativeint
Public ReadOnly Property ReadHandle As IntPtr

属性值

IntPtr

nativeint

用于查看和接收来自队列的消息的本机队列对象的句柄。

属性

例外

访问消息队列方法时出错。

注解

ReadHandle为用于查看和接收队列消息的消息队列对象提供本机Windows句柄。 如果更改队列的路径,则句柄会关闭并重新打开并显示一个新值。

下表显示了此属性是否可用于各种工作组模式。

工作组模式 可用的
本地计算机
本地计算机和直接格式名称
远程计算机
远程计算机和直接格式名称

适用于

另请参阅