Message オブジェクトを使用してメッセージをキューに送信しようとしていますが、エラーが発生しています
指定された形式名は、要求された操作をサポートしていません。たとえば、ダイレクト キュー形式名は削除できません。
これがコードです。
Order ord = new Order(new Guid(), "Smith & Smith");
Message orderMessage = new Message(ord);
orderMessage.UseEncryption = true;
orderMessage.EncryptionAlgorithm = EncryptionAlgorithm.Rc2;
orderMessage.Recoverable = true;
orderMessage.Priority = MessagePriority.VeryHigh;
orderMessage.TimeToBeReceived = TimeSpan.FromHours(1);
orderMessage.UseJournalQueue = true;
orderMessage.Body = "Test Encryption";
queue.Send(orderMessage, "Encrypted Order");
これに関する任意の助けをいただければ幸いです。
トム