MessagePropertyFilter.AppSpecific Propiedad

Definición

Obtiene o establece un valor que indica si se debe recuperar información de la propiedad AppSpecific al recibir un mensaje o leerlo.

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

Valor de propiedad

true para recibir información de AppSpecific; en cualquier otro caso, false. De manera predeterminada, es false.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra el uso de la AppSpecific propiedad .

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

Comentarios

La AppSpecific propiedad de la clase contiene información adicional específica de la Message aplicación.

Se aplica a

Consulte también