다음을 통해 공유


BasicHttpBinding Constructor (BasicHttpSecurityMode)

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

Initializes a new instance of the BasicHttpBinding class with a specified type of security used by the binding.

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

Syntax

'Declaration
Public Sub New ( _
    securityMode As BasicHttpSecurityMode _
)
public BasicHttpBinding(
    BasicHttpSecurityMode securityMode
)

Parameters

Remarks

The default value of BasicHttpSecurityMode is None, which specifies that the SOAP message is not secured and the client is not authenticated.

Examples

            Dim transportSecurityBinding As New BasicHttpBinding(BasicHttpSecurityMode.Transport)
BasicHttpBinding transportSecurityBinding = new BasicHttpBinding(BasicHttpSecurityMode.Transport);

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

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