MessagePropertyFilter.Label Propriedade
Definição
public:
property bool Label { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgLabel")]
public bool Label { get; set; }
[<System.Messaging.MessagingDescription("MsgLabel")>]
member this.Label : bool with get, set
Public Property Label As Boolean
Valor da propriedade
true para receber Label informações; caso contrário, false .true to receive Label information; otherwise, false. O padrão é true.The default is true.
- Atributos
Exemplos
O exemplo de código a seguir demonstra o uso da Label propriedade.The following code example demonstrates the use of the Label property.
// Set the queue's MessageReadPropertyFilter property
// to enable the message's Label property.
queue->MessageReadPropertyFilter->Label = 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 Label property.
Console::WriteLine("Message.Label: {0}",
orderMessage->Label);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's Label property.
queue.MessageReadPropertyFilter.Label = 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 Label property.
Console.WriteLine("Message.Label: {0}",
orderMessage.Label);
Comentários
A Label propriedade da Message classe especifica o rótulo da mensagem.The Label property of the Message class specifies the label of the message.