Condividi tramite


MessagePropertyFilter.DefaultLabelSize Proprietà

Definizione

Ottiene o imposta le dimensioni, in byte, del buffer dell'etichetta predefinita.

public:
 property int DefaultLabelSize { int get(); void set(int value); };
[System.Messaging.MessagingDescription("MsgDefaultLabelSize")]
public int DefaultLabelSize { get; set; }
[<System.Messaging.MessagingDescription("MsgDefaultLabelSize")>]
member this.DefaultLabelSize : int with get, set
Public Property DefaultLabelSize As Integer

Valore della proprietà

Dimensioni predefinite del buffer dell'etichetta da creare, quando viene ricevuto il messaggio. Il valore predefinito è 255 byte.

Attributi

Eccezioni

Il valore assegnato è negativo.

Esempio

Nell'esempio di codice seguente viene illustrato l'uso della DefaultLabelSize proprietà .

// Set the filter's DefaultLabelSize 
// property to 1024 bytes.
queue->MessageReadPropertyFilter->
    DefaultLabelSize = 1024;

// Display the new value of the filter's 
// DefaultLabelSize property.
Console::WriteLine(
    "MessageReadPropertyFilter.DefaultLabelSize: {0}", 
    queue->MessageReadPropertyFilter->DefaultLabelSize);
// Set the filter's DefaultLabelSize property to 1024 bytes.
queue.MessageReadPropertyFilter.DefaultLabelSize = 1024;

// Display the new value of the filter's DefaultLabelSize property.
Console.WriteLine("MessageReadPropertyFilter.DefaultLabelSize: {0}",
    queue.MessageReadPropertyFilter.DefaultLabelSize.ToString());

Commenti

La dimensione dell'etichetta predefinita specifica il numero di byte da allocare per l'etichetta del messaggio. La Label proprietà della Message classe specifica l'etichetta del messaggio.

Si applica a

Vedi anche