MessagePropertyFilter.DefaultLabelSize 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置默认标签缓冲区的大小(以字节为单位)。
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
属性值
接收消息时创建的默认标签缓冲区大小。 默认值为 255 字节。
- 属性
例外
分配的值为负。
示例
下面的代码示例演示如何使用 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);
// 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());
注解
默认标签大小指定要为消息标签分配的字节数。 Label类的 Message 属性指定消息的标签。
适用于
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈