MessageQueue.Create(String value) : MessageQueue « System.Messaging « C# / C Sharp by API






MessageQueue.Create(String value)

  


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.new MessageQueue
2.MessageQueue.Exists(String value)
3.MessageQueue.Send