Udostępnij przez


MessagePropertyFilter.AppSpecific Właściwość

Definicja

Pobiera lub ustawia wartość wskazującą, czy pobierać AppSpecific informacje o właściwości podczas odbierania lub podglądu komunikatu.

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

Wartość właściwości

true aby otrzymywać AppSpecific informacje; w przeciwnym razie false. Wartość domyślna to false.

Atrybuty

Przykłady

Poniższy przykład kodu przedstawia użycie AppSpecific właściwości.

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

Uwagi

Właściwość AppSpecificMessage klasy zawiera dodatkowe informacje specyficzne dla aplikacji.

Dotyczy

Zobacz też