MessagePropertyFilter.AppSpecific Vlastnost

Definice

Získá nebo nastaví hodnotu, která označuje, zda načíst AppSpecific informace o vlastnosti při přijetí nebo náhledu zprávy.

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

Hodnota vlastnosti

true k příjmu AppSpecific informací; falsev opačném případě . Výchozí formát je false.

Atributy

Příklady

Následující příklad kódu ukazuje použití AppSpecific vlastnosti.

// 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);

Poznámky

Vlastnost AppSpecificMessage třídy obsahuje další informace specifické pro aplikaci.

Platí pro

Viz také