When you add an instance of the MessageQueue component to your form or designer, the references and import statements you need to access these namespaces and classes are automatically created. However, if you are creating your MessageQueue components in code, you might need to create a reference to System.Messaging and add a statement to your project importing (in Visual Basic) or using (in C#) that namespace. You can use the following methods to interact with an instance of the MessageQueue component:
|