MessageQueue.ReadHandle 屬性

定義

取得用來從訊息佇列讀取訊息的原生控制代碼。Gets the native handle used to read messages from the message queue.

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

用來從佇列窺視或接收訊息之原生佇列物件的控制代碼。A handle to the native queue object that you use for peeking and receiving messages from the queue.

屬性

例外狀況

存取訊息佇列方法時發生錯誤。An error occurred when accessing a Message Queuing method.

備註

ReadHandle提供訊息佇列物件的原生 Windows 控制碼,此控制碼用於從佇列中查看和接收訊息。The ReadHandle provides a native Windows handle to the message queue object that is used for peeking and receiving messages from the queue. 如果您變更佇列的路徑,控制碼會關閉並以新值重新開啟。If you change the path of the queue, the handle is closed and reopened with a new value.

下表顯示此屬性是否適用于各種工作組模式。The following table shows whether this property is available in various Workgroup modes.

工作組模式Workgroup mode 可用Available
本機電腦Local computer Yes
本機電腦和直接格式名稱Local computer and direct format name Yes
遠端電腦Remote computer No
遠端電腦和直接格式名稱Remote computer and direct format name Yes

適用於

另請參閱