MessagePropertyFilter.TransactionStatusQueue-Eigenschaft
Ruft einen Wert ab, der angibt, ob beim Einsehen oder beim Empfang einer Meldung die Message.TransactionStatusQueue-Eigenschaft abgerufen wird, oder legt diesen fest.
Namespace: System.Messaging
Assembly: System.Messaging (in system.messaging.dll)
Syntax
'Declaration
Public Property TransactionStatusQueue As Boolean
'Usage
Dim instance As MessagePropertyFilter
Dim value As Boolean
value = instance.TransactionStatusQueue
instance.TransactionStatusQueue = value
public bool TransactionStatusQueue { get; set; }
public:
property bool TransactionStatusQueue {
bool get ();
void set (bool value);
}
/** @property */
public boolean get_TransactionStatusQueue ()
/** @property */
public void set_TransactionStatusQueue (boolean value)
public function get TransactionStatusQueue () : boolean
public function set TransactionStatusQueue (value : boolean)
Eigenschaftenwert
true, wenn Informationen über die Message.TransactionStatusQueue abgerufen werden, andernfalls false. Der Standardwert ist false.
Hinweise
Die TransactionStatusQueue-Eigenschaft der Message-Klasse bezeichnet die Transaktionsstatus-Warteschlange auf dem Quellcomputer. Über die Eigenschaft können Bestätigungsmeldungen an eine sendende Anwendung zurückgesendet werden. Die Transaktionsstatus-Warteschlange wird von Connectoranwendungen beim Empfang von transaktionalen Meldungen verwendet, die an eine fremde Warteschlange gesendet wurden.
Fremde Warteschlangen sind Warteschlangen, die nicht von Microsoft Message Queuing verwaltet werden. Microsoft Message Queuing kommuniziert mit diesen Warteschlangen über eine Connectoranwendung.
Beispiel
Im folgenden Codebeispiel wird die Verwendung der TransactionStatusQueue-Eigenschaft veranschaulicht.
// Set the queue's MessageReadPropertyFilter property to enable the
// message's TransactionStatusQueue property.
queue.MessageReadPropertyFilter.TransactionStatusQueue = true;
// Peek at the message. Time out after ten seconds in case the message
// was not delivered.
orderMessage = queue.Peek(TimeSpan.FromSeconds(10.0));
// Display the value of the message's TransactionStatusQueue.QueueName
// property.
Console.WriteLine("Message.TransactionStatusQueue.QueueName: {0}",
orderMessage.TransactionStatusQueue.QueueName);
// Set the queue's MessageReadPropertyFilter property to
// enable the message's TransactionStatusQueue property.
queue->MessageReadPropertyFilter->
TransactionStatusQueue = true;
// Peek at the message. Time out after ten seconds
// in case the message was not delivered.
orderMessage = queue->Peek(TimeSpan::FromSeconds(10.0));
// Display the value of the message's
// TransactionStatusqueue->QueueName property.
Console::WriteLine(
"Message.TransactionStatusqueue->QueueName: {0}",
orderMessage->TransactionStatusQueue->QueueName);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's TransactionStatusQueue property.
queue.get_MessageReadPropertyFilter().set_TransactionStatusQueue(true);
// Peek at the message. Time out after ten seconds in case the message
// was not delivered.
orderMessage = queue.Peek(TimeSpan.FromSeconds(10.0));
// Display the value of the message's TransactionStatusQueue.QueueName
// property.
Console.WriteLine("Message.TransactionStatusQueue.QueueName: {0}",
System.Convert.ToString(orderMessage.get_TransactionStatusQueue().
get_QueueName()));
.NET Framework-Sicherheit
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter .
Plattformen
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
MessagePropertyFilter-Klasse
MessagePropertyFilter-Member
System.Messaging-Namespace
Message.TransactionStatusQueue-Eigenschaft
MessagePropertyFilter.ConnectorType-Eigenschaft
MessageQueue