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")

适用于