共用方式為


PollingDuplexHttpBinding.DuplexMode Property

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

Gets or sets a value that specifies how the server behaves in response to client polling when the communication is configured for duplex polling.

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

Syntax

'Declaration
Public Property DuplexMode As PollingDuplexMode
public PollingDuplexMode DuplexMode { get; set; }

Property Value

Type: System.ServiceModel.Channels.PollingDuplexMode
A PollingDuplexMode object whose value indicates how the server behaves in response to client polling when the communication is configured for duplex. The default value is SingleMessagesPerPoll().

Remarks

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

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.