次の方法で共有


MessagePropertyFilter.AppSpecific プロパティ

定義

メッセージの受信時またはピーク時にプロパティ情報 AppSpecific 取得するかどうかを示す値を取得または設定します。

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

プロパティ値

true AppSpecific情報を受信する場合は。それ以外の場合はfalse。 既定値は、false です。

属性

次のコード例では、 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);
// 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);

注釈

Message クラスの AppSpecific プロパティには、アプリケーション固有の追加情報が含まれています。

適用対象

こちらもご覧ください