MessageQueue.Create : MessageQueue « Web Services « C# / C Sharp






MessageQueue.Create

 
using System;
using System.Messaging;



class Program {
    static void Main(string[] args) {
        using (MessageQueue queue = MessageQueue.Create(@".\MyNewPublicQueue")) {
            Console.WriteLine("Queue created:");
            Console.WriteLine("Path: {0}", queue.Path);
            Console.WriteLine("FormatName: {0}", queue.FormatName);
        }
        Console.ReadLine();
    }
}

 








Related examples in the same category

1.MessageQueue: Exists