MessagePropertyFilter.DefaultBodySize 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
기본 본문 버퍼의 크기(바이트)를 가져오거나 설정합니다.
public:
property int DefaultBodySize { int get(); void set(int value); };
[System.Messaging.MessagingDescription("MsgDefaultBodySize")]
public int DefaultBodySize { get; set; }
[<System.Messaging.MessagingDescription("MsgDefaultBodySize")>]
member this.DefaultBodySize : int with get, set
Public Property DefaultBodySize As Integer
속성 값
메시지를 받을 때 만들어지는 기본 본문 버퍼 크기입니다. 기본값은 1024바이트입니다.
- 특성
예외
할당된 값이 음수인 경우
예제
다음 코드 예제에서는 DefaultBodySize 속성입니다.
// Set the filter's DefaultBodySize
// property to 2048 bytes.
queue->MessageReadPropertyFilter->
DefaultBodySize = 2048;
// Display the new value of the filter's
// DefaultBodySize property.
Console::WriteLine(
"MessageReadPropertyFilter.DefaultBodySize: {0}",
queue->MessageReadPropertyFilter->DefaultBodySize);
// Set the filter's DefaultBodySize property to 2048 bytes.
queue.MessageReadPropertyFilter.DefaultBodySize = 2048;
// Display the new value of the filter's DefaultBodySize property.
Console.WriteLine("MessageReadPropertyFilter.DefaultBodySize: {0}",
queue.MessageReadPropertyFilter.DefaultBodySize.ToString());
설명
기본 본문 크기에는 메시지의 본문 내용에 대해 할당할 바이트 수를 지정 합니다. Body 의 속성을 Message 클래스는 메시지의 serialize 된 내용을 나타냅니다. 본문에는 최대 4MB의 데이터를 포함할 수 있습니다. 본문 크기를 제한 하면 성능을 향상 시킬 수 있습니다.
적용 대상
추가 정보
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기