NetNamedPipeBindingElement.MaxBufferSize 속성

정의

메모리에 메시지를 저장하는 데 사용되는 버퍼의 최대 크기(바이트)를 지정하는 값을 가져오거나 설정합니다.

public:
 property int MaxBufferSize { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxBufferSize", DefaultValue=65536)]
[System.Configuration.IntegerValidator(MinValue=1)]
public int MaxBufferSize { get; set; }
[<System.Configuration.ConfigurationProperty("maxBufferSize", DefaultValue=65536)>]
[<System.Configuration.IntegerValidator(MinValue=1)>]
member this.MaxBufferSize : int with get, set
Public Property MaxBufferSize As Integer

속성 값

메모리에서 들어오는 메시지를 버퍼링하는 데 사용되는 최대 바이트 수입니다. 기본값은 65,536바이트입니다.

특성

설명

이 속성은 스트리밍된 메시지의 헤더에만 적용됩니다. 이 값은 버퍼링 모드에서 읽는 SOAP 헤더의 최대 크기 이상이어야 합니다.

버퍼가 가득 차면 버퍼에 다시 공간이 확보될 때까지 초과 데이터가 기본 소켓에 유지됩니다.

이 속성의 값은 MaxMessageSize보다 작거나 같아야 하며 메시지의 헤더 크기보다 크거나 채널에서 예외를 throw해야 합니다.

버퍼링할 수 있는 것보다 많은 데이터를 수신하는 경우 채널은 내부 예외로 포함된 />를 throw합니다 .

적용 대상