Condividi tramite


PollingDuplexHttpBinding Constructor

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

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

Initializes a new instance of the PollingDuplexHttpBinding class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method PollingDuplexHttpBinding() Initializes a new instance of the PollingDuplexHttpBinding class.
Public method PollingDuplexHttpBinding(PollingDuplexHttpSecurityMode) Initializes a new instance of the PollingDuplexHttpBinding class with a specified type of security used by the binding.
Public method PollingDuplexHttpBinding(PollingDuplexMode) Initializes a new instance of the PollingDuplexHttpBinding class with a specified mode of behavior on the server in response to client polling.
Public method PollingDuplexHttpBinding(PollingDuplexHttpSecurityMode, PollingDuplexMode) 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.

Top

Examples

            'Constructors set with different security modes
            Dim defaultNoSecurityPDBinding As New PollingDuplexHttpBinding()
            Dim transportSecurityPDBinding As New PollingDuplexHttpBinding(BasicHttpSecurityMode.Transport)
            Dim transportOnlySecurityPDBinding As New PollingDuplexHttpBinding(BasicHttpSecurityMode.TransportCredentialOnly)

            'Output txtSecurityMode for binding with transport security: Transport
            Dim txtSecurityMode As String = transportSecurityPDBinding.Security.Mode.ToString()
//Constructors set with different security modes
PollingDuplexHttpBinding defaultNoSecurityPDBinding = new PollingDuplexHttpBinding();
PollingDuplexHttpBinding transportSecurityPDBinding = new PollingDuplexHttpBinding(BasicHttpSecurityMode.Transport);
PollingDuplexHttpBinding transportOnlySecurityPDBinding = new PollingDuplexHttpBinding(BasicHttpSecurityMode.TransportCredentialOnly);

//Output txtSecurityMode for binding with transport security: Transport
string txtSecurityMode = transportSecurityPDBinding.Security.Mode.ToString();