MsmqMessage<T>.ResponseQueue 属性

定义

获取或设置从接收应用程序接收响应消息的消息队列的 Uri

public:
 property Uri ^ ResponseQueue { Uri ^ get(); void set(Uri ^ value); };
public Uri ResponseQueue { get; set; }
member this.ResponseQueue : Uri with get, set
Public Property ResponseQueue As Uri

属性值

Uri

此属性的默认值为 null

此属性可标识接收应用程序返回给发送应用程序的响应消息的队列。 发送应用程序会在向接收应用程序发送消息时指定响应队列。 发送应用程序可以指定任何可用的队列为响应队列。

示例

message.ResponseQueue = new Uri(".\\private$\\MyResponseQueue");
message.ResponseQueue = New Uri(".\private$\MyResponseQueue")

适用于