MessagePropertyFilter.ArrivedTime Właściwość

Definicja

Pobiera lub ustawia wartość wskazującą, czy pobierać ArrivedTime informacje o właściwości podczas odbierania lub przeglądania komunikatu.

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

Wartość właściwości

true w celu otrzymywania ArrivedTime informacji; falsew przeciwnym razie . Wartość domyślna to false.

Atrybuty

Przykłady

W poniższym przykładzie kodu pokazano użycie ArrivedTime właściwości .

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

Uwagi

Właściwość ArrivedTimeMessage klasy wskazuje, kiedy komunikat dotarł do kolejki docelowej. Jest to czas lokalny, dostosowany z GMT, komputera, na którym jest pobierany komunikat.

Dotyczy

Zobacz też