MessagePropertyFilter.DefaultLabelSize Właściwość

Definicja

Pobiera lub ustawia rozmiar w bajtach domyślnego bufora etykiety.

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

Wartość właściwości

Domyślny rozmiar buforu etykiety do utworzenia po odebraniu komunikatu. Wartość domyślna to 255 bajtów.

Atrybuty

Wyjątki

Przypisana wartość jest ujemna.

Przykłady

W poniższym przykładzie kodu pokazano użycie DefaultLabelSize właściwości .

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

Uwagi

Domyślny rozmiar etykiety określa liczbę bajtów do przydzielenia dla etykiety komunikatu. Właściwość LabelMessage klasy określa etykietę komunikatu.

Dotyczy

Zobacz też