PollingDuplexHttpBinding Constructor

Silverlight

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.

  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


//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();


Community Additions

ADD
Show: