更新时间:2023-11-29 10:21:40
仅当您使用直接格式名称访问队列时,Peek
方法仅在远程计算机上可用.只要您不依赖目录服务来进入队列,就应该能够使用相同的代码.
The Peek
method is only available on remote machines when you use a direct format name to access the queue. You should be able to use the same code, so long as you're not relying on directory services to get you to the queue.
直接队列名称通常类似于:DIRECT=URLAddressSpecification/QueueName
Direct queue names generally look something like: DIRECT=URLAddressSpecification/QueueName