MessagePropertyFilter.DefaultLabelSize Vlastnost

Definice

Získá nebo nastaví velikost výchozí vyrovnávací paměti popisků v bajtech.

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

Hodnota vlastnosti

Výchozí velikost vyrovnávací paměti popisku, která se má vytvořit při přijetí zprávy. Výchozí hodnota je 255 bajtů.

Atributy

Výjimky

Přiřazená hodnota je záporná.

Příklady

Následující příklad kódu ukazuje použití DefaultLabelSize vlastnosti.

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

Poznámky

Výchozí velikost popisku určuje počet bajtů, které se mají přidělit popisku zprávy. Vlastnost LabelMessage třídy určuje popisek zprávy.

Platí pro

Viz také