MessagePropertyFilter.SetDefaults Metodo

Definizione

Imposta i valori di filtro delle proprietà comuni di Accodamento messaggi su true e le proprietà con Integer sui rispettivi valori predefiniti.

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

Esempio

Nell'esempio di codice seguente viene chiamato il SetDefaults metodo .

// 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();

Commenti

Usare SetDefaults per impostare le proprietà Boolean-valued seguenti MessagePropertyFilter su true. Queste sono le proprietà MessageQueue più comuni che in genere interagiscono con quanto segue:

SetDefaults imposta le proprietà nella tabella seguente sui valori predefiniti.

Proprietà Valore predefinito
DefaultBodySize 1024
DefaultExtensionSize 255
DefaultLabelSize 255

La MessageQueue.MessageReadPropertyFilter proprietà rappresenta un MessagePropertyFilter oggetto su cui SetDefaults è stato chiamato.

Si applica a

Vedi anche