<security> of <basicHttpBinding> (Silverlight)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Defines the security capabilities of the <basicHttpBinding> (Silverlight) element.
Schema Hierarchy
<system.serviceModel> (Silverlight)
<bindings> (Silverlight)
<basicHttpBinding> (Silverlight)
<binding> of <basicHttpBinding> (Silverlight)
<security> of <basicHttpBinding> (Silverlight)
Syntax
<basicHttpBinding>
<binding>
<security mode="None/Transport/TransportWithMessageCredential/TransportCredentialOnly" /> </binding></basicHttpBinding>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute | Description |
---|---|
mode |
Optional. Specifies the type of security that is used. The default is None. This attribute is of type BasicHttpSecurityMode. |
Child Elements
None.
Parent Elements
Element | Description |
---|---|
The <binding> of <basicHttpBinding> (Silverlight) element of the <basicHttpBinding> (Silverlight) element. |
Text Value
Remarks
By default, the SOAP message is not secured and the client is not authenticated. This element enables you to configure additional security settings for the basicHttpBinding element.
Example
The following code sample shows how to configure a client using the BasicHttpBinding to use Transport security.
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="SilverlightBinding1" >
<security mode=" Transport" />
</binding>
</basicHttpBinding>
</bindings>
</system.serviceModel>