Forum Discussion
HKosova
13 years agoSmartBear Alumni (Retired)
Hi Shawn,
I'd recommend using MSMQ scripting API instead. You can find a sample script that demonstrates how to send and receive MSMQ messages here. It's a VBScript script, but it should help you get the idea.
But if you want to use .NET classes for this purpose, you can access them via the dotNET object. To make MSMQ .NET classes available for scripting, you'll need to add the System.Messaging.dll assembly to Tools > Current Project Properties > CLR Bridge. After that, you can write code like this:
I'd recommend using MSMQ scripting API instead. You can find a sample script that demonstrates how to send and receive MSMQ messages here. It's a VBScript script, but it should help you get the idea.
But if you want to use .NET classes for this purpose, you can access them via the dotNET object. To make MSMQ .NET classes available for scripting, you'll need to add the System.Messaging.dll assembly to Tools > Current Project Properties > CLR Bridge. After that, you can write code like this:
(".\\Private$\\MyPrivateQueue");
queue["Send"]("Hello, world");
// and so on
Related Content
- 11 years agovishwas_n
- 11 years agofayrehouse
- 6 years agopeejay1977
Recent Discussions
- 2 hours agoSubhraDas
- 8 hours agoJacobjacob44