共用方式為


PollingDuplexMode Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Specifies the format of server responses to client polling when the communication is configured for duplex polling.

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

Syntax

'Declaration
Public Enumeration PollingDuplexMode
public enum PollingDuplexMode

Members

Member name Description
SingleMessagePerPoll Specifies the server will return one message every time the client polls for a message and then close the polling connection. This is the default value.
MultipleMessagesPerPoll Specifies the server keeps the connection open for as long there are messages ready to be sent back to the client and sends as many messages back to the client as it can over a chunked HTTP response.

If the value of the DuplexMode property or of the DuplexMode property is set to MultipleMessagesPerPoll, it is required that TransferMode in the underlying HttpTransportBindingElement be set to StreamedResponse.

Remarks

This enumeration is used in the PollingDuplexBindingElement and the PollingDuplexHttpBinding. The default value in both cases is SingleMessagesPerPoll().

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.