Поделиться через


MessagePropertyFilter.SetDefaults Метод

Определение

Задает значения фильтра общих свойств true очереди сообщений и целочисленные свойства по умолчанию.

public:
 void SetDefaults();
public void SetDefaults();
member this.SetDefaults : unit -> unit
Public Sub SetDefaults ()

Примеры

В следующем примере кода вызывается SetDefaults метод.

// Set all of the queue's MessageReadPropertyFilter 
// properties to their defaults.
queue->MessageReadPropertyFilter->SetDefaults();
// Set all of the queue's MessageReadPropertyFilter properties to their
// defaults.
queue.MessageReadPropertyFilter.SetDefaults();

Комментарии

Используется SetDefaults для задания следующих MessagePropertyFilter логических свойств true. Это наиболее распространенные свойства, MessageQueue которые обычно взаимодействуют со следующими свойствами:

SetDefaults Задает свойства в следующей таблице значения по умолчанию.

Недвижимость Значение по умолчанию
DefaultBodySize 1024
DefaultExtensionSize 255
DefaultLabelSize 255

Свойство MessageQueue.MessageReadPropertyFilter представляет MessagePropertyFilterSetDefaults собой вызываемое свойство.

Применяется к

См. также раздел