MessageQueue.ReadHandle Propriedade
Definição
Obtém o identificador nativo usado para ler as mensagens da fila de mensagens.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
Valor da propriedade
Um identificador para o objeto de fila nativo que você usa para inspecionar e receber mensagens da fila.A handle to the native queue object that you use for peeking and receiving messages from the queue.
- Atributos
Exceções
Erro ao acessar um método do serviço de Enfileiramento de Mensagens.An error occurred when accessing a Message Queuing method.
Comentários
O ReadHandle fornece um identificador nativo do Windows para o objeto fila de mensagens que é usado para inspecionar e receber mensagens da fila.The ReadHandle provides a native Windows handle to the message queue object that is used for peeking and receiving messages from the queue. Se você alterar o caminho da fila, o identificador será fechado e reaberto com um novo valor.If you change the path of the queue, the handle is closed and reopened with a new value.
A tabela a seguir mostra se essa propriedade está disponível em vários modos de grupo de trabalho.The following table shows whether this property is available in various Workgroup modes.
| Modo de grupo de trabalhoWorkgroup mode | DisponívelAvailable |
|---|---|
| Computador localLocal computer | YesYes |
| Computador local e nome de formato diretoLocal computer and direct format name | YesYes |
| Computador remotoRemote computer | NãoNo |
| Computador remoto e nome de formato diretoRemote computer and direct format name | YesYes |