Partager via


PollingDuplexHttpSecurity.Mode Property

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

Gets or sets the mode of security for a client configured with a PollingDuplexHttpBinding.

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

Syntax

'Declaration
Public Property Mode As PollingDuplexHttpSecurityMode
public PollingDuplexHttpSecurityMode Mode { get; set; }

Property Value

Type: System.ServiceModel.PollingDuplexHttpSecurityMode
A value in the PollingDuplexHttpSecurityMode enumeration. The default value for this property is None.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The value is not a legal value for PollingDuplexHttpSecurityMode.

Remarks

The security mode values available to Silverlight clients configured with the PollingDuplexHttpBinding are None, Transport, TransportCredentialOnly, and TransportWithMessageCredential.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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