Message.UseJournalQueue Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that indicates whether a copy of the message should be kept in a machine journal on the originating computer.
public:
property bool UseJournalQueue { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgUseJournalQueue")]
public bool UseJournalQueue { get; set; }
[<System.Messaging.MessagingDescription("MsgUseJournalQueue")>]
member this.UseJournalQueue : bool with get, set
Public Property UseJournalQueue As Boolean
true
to require that a copy of a message be kept in the originating computer's machine journal after the message has been successfully transmitted (from the originating computer to the next server); otherwise, false
. The default is false
.
- Attributes
The message queue is filtered to ignore the UseJournalQueue property.
The following code example gets and sets the value of a message's UseJournalQueue property.
The UseJournalQueue and UseDeadLetterQueue properties specify how Message Queuing tracks a message. If UseJournalQueue is true
, then a copy is kept in the computer journal on the originating machine at each step that a message is transmitted.
The sent message is only copied to the journal queue if the destination queue is on a remote computer. If the destination is on the local computer, the message is sent directly to the queue; there are no intermediate steps to require journaling.
When you store messages in a journal queue, clear the queue periodically to remove messages that are no longer needed. Messages stored in journal queues count against the quota for the computer where the queue resides. (The computer quota is set by the administrator.)
You do not create a journal or dead-letter queue. These are both system queues that Message Queuing generates.
Produkt | Verzie |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Pripomienky k produktu .NET
.NET je open-source projekt. Ak chcete poskytnúť pripomienky, vyberte prepojenie: