Defines the security settings for a binding.
<system.serviceModel>
<bindings>
<netMsmqBinding>
<binding>
<security> of <netMsmqBinding>
                                    
                                    <netMsmqBinding>
                                
                                    
                                        <binding>
                                
                                    
                                        <security mode="None/Transport/Message/Both">
                                
                                    
                                             <transport msmqAuthenticationMode="None/WindowsDomain/Certificate"
                                
                                    
                                                msmqEncryptionAlgorithm="RC4Stream/AES"
                                
                                    
                                                msmqProtectionLevel="None/Sign/EncryptAndSign"
                                
                                    
                                                msmqSecureHashAlgorithm="MD5/SHA1/SHA256/SHA512" />
                                
                                    
                                                 
                                    
                                             <message  algorithmSuite="Aes128/Aes192/Aes256/Rsa15Aes128/ Rsa15Aes256/TripleDes"
                                
                                    
                                                    
                                    
                                                defaultProtectionLevel="None/Sign/EncryptAndSign"
                                
                                    
                                                clientCredentialType="None/Windows/UserName/Certificate/InfoCard "/>
                                
                                    
                                        
                                    
                                    
                                
                                    
                                        </security>
                                
                                    
                                       </binding>
                                
                                    
                                    </netMsmqBinding>
                                
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
| Attribute | Description | 
|---|---|
mode  | 
Specifies the type of security that controls integrity, confidentiality and authentication. Valid values include the following: 
 The default value is Transport. This attribute is of type NetMsmqSecurityMode.  | 
Child Elements
| Element | Description | 
|---|---|
transport  | 
Defines the security settings for the transport. This element is of type MsmqTransportSecurityElement.  | 
message  | 
Defines the security settings for the message. This element is of type MessageSecurityOverMsmqElement.  | 
Parent Elements
| Element | Description | 
|---|---|
binding  | 
The binding element of the <netMsmqBinding>  | 
See Also
Reference
.gif)
Send comments about this topic to Microsoft.
© Microsoft Corporation. All rights reserved.