NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Setting Queue References

You have three choices in the way you refer to a queue in your project—you can refer to it by the path to the queue, the queue's automatically generated format name, or by the non-unique descriptive label of the queue. Each of these ways of referencing a queue has its advantages and disadvantages. For more information, see Queue Reference Recommendations.

Note   When you set a queue reference, you are merely linking the MessageQueue component you created to the existing queue. You are not changing the way the actual queue itself is identified on the server.

To set a queue reference

  1. Create an instance of the MessageQueue component. For details, see Creating MessageQueue components.
  2. Set one of the following properties on the MessageQueue component:
    • To refer to the queue by its path, set the Path property.
    • To refer to the queue by its format name, set the FormatName property.
    • To refer to the queue by its label, set the Label property.

See Also

Creating, Deleting, and Administering Queues | Queue Reference Recommendations.