MessagePropertyFilter.DefaultLabelSize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the size, in bytes, of the default label buffer.
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
Property Value
The default label buffer size to create when the message is received. The default is 255 bytes.
- Attributes
Exceptions
The assigned value is negative.
Examples
The following code example demonstrates the use of the DefaultLabelSize property.
// 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());
Remarks
The default label size specifies the number of bytes to allocate for the message's label. The Label property of the Message class specifies the label of the message.
Applies to
See also
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za