NetTcpBinding::MaxReceivedMessageSize Property

 

Gets or sets the maximum size, in bytes, for a received message that is processed by the binding.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
property long long MaxReceivedMessageSize {
	long long get();
	void set(long long value);
}

Property Value

Type: System::Int64

The maximum size (in bytes) for a received message that is processed by the binding. The default value is 65,536 bytes.

This example shows how to get the MaxReceivedMessageSize value.

long MaxReceivedMessageSize = binding.MaxReceivedMessageSize;

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Return to top
Show: