Condividi tramite


PollingDuplexHttpBinding Constructor (PollingDuplexHttpSecurityMode, PollingDuplexMode)

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

Initializes a new instance of the PollingDuplexHttpBinding class with a specified type of security and a specified mode of behavior on the server in the way it responses to client polling.

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

Syntax

'Declaration
Public Sub New ( _
    securityMode As PollingDuplexHttpSecurityMode, _
    duplexMode As PollingDuplexMode _
)
public PollingDuplexHttpBinding(
    PollingDuplexHttpSecurityMode securityMode,
    PollingDuplexMode duplexMode
)

Parameters

Remarks

Use this constructor if you want to use non-default values for the security and polling modes. The default value of PollingDuplexHttpSecurityMode is None, which specifies that the SOAP message is not secured and the client is not authenticated. The default value of PollingDuplexMode used by this constructor is SingleMessagesPerPoll(), which indicates that the server will return one message every time the client polls for a message and then close the polling connection.

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.