MessagePropertyFilter.AppSpecific Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob beim Einsehen oder beim Empfang einer Meldung die AppSpecific-Eigenschaft abgerufen wird, oder legt diesen fest.

public:
 property bool AppSpecific { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgAppSpecific")]
public bool AppSpecific { get; set; }
[<System.Messaging.MessagingDescription("MsgAppSpecific")>]
member this.AppSpecific : bool with get, set
Public Property AppSpecific As Boolean

Eigenschaftswert

true, wenn Informationen über den AppSpecific abgerufen werden, andernfalls false. Der Standardwert ist false.

Attribute

Beispiele

Im folgenden Codebeispiel wird die Verwendung des AppSpecific-Attributs veranschaulicht.

// Set the queue's MessageReadPropertyFilter property 
// to enable the message's AppSpecific property.
queue->MessageReadPropertyFilter->AppSpecific = 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 
// AppSpecific property.
Console::WriteLine("Message.AppSpecific: {0}", 
    orderMessage->AppSpecific);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's AppSpecific property.
queue.MessageReadPropertyFilter.AppSpecific = 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 AppSpecific property.
Console.WriteLine("Message.AppSpecific: {0}",
    orderMessage.AppSpecific);

Hinweise

Die AppSpecific -Eigenschaft der Message -Klasse enthält zusätzliche anwendungsspezifische Informationen.

Gilt für:

Weitere Informationen