共用方式為


MessagePropertyFilter.AdministrationQueue 屬性

定義

取得或設定值,指出在接收或窺視訊息時是否要擷取 AdministrationQueue 屬性資訊。

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

屬性值

true 表示接收 AdministrationQueue 資訊,否則為 false。 預設為 true

屬性

範例

下列程式代碼範例示範 屬性的使用 AdministrationQueue

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

備註

類別 AdministrationQueueMessage 屬性會指定接收系統產生通知的佇列名稱。

適用於

另請參閱