MessagePropertyFilter.DefaultLabelSize Propriedade
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Obtém ou define o tamanho, em bytes, do buffer de rótulo padrão.
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
Valor da propriedade
O tamanho do buffer de rótulo padrão a ser criado quando a mensagem é recebida. O padrão é 255 bytes.
- Atributos
Exceções
O valor atribuído é negativo.
Exemplos
O exemplo de código a seguir demonstra o uso da DefaultLabelSize propriedade .
// 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());
Comentários
O tamanho do rótulo padrão especifica o número de bytes a serem alocados para o rótulo da mensagem. A Label propriedade da Message classe especifica o rótulo da mensagem.