WSHttpSecurity.Transport WSHttpSecurity.Transport WSHttpSecurity.Transport WSHttpSecurity.Transport Property

Definition

Gets an object that contains the transport-level security settings for this binding.

public:
 property System::ServiceModel::HttpTransportSecurity ^ Transport { System::ServiceModel::HttpTransportSecurity ^ get(); void set(System::ServiceModel::HttpTransportSecurity ^ value); };
public System.ServiceModel.HttpTransportSecurity Transport { get; set; }
member this.Transport : System.ServiceModel.HttpTransportSecurity with get, set
Public Property Transport As HttpTransportSecurity

Property Value

Examples

The following code sets the client credential type to Windows.

// The code uses a shortcut to specify the security mode to Transport.  
WSHttpBinding b = new WSHttpBinding(SecurityMode.Transport);  
b.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows;  
' The code uses a shortcut to specify the security mode to Transport.  
Dim b As WSHttpBinding = new WSHttpBinding(SecurityMode.Transport)  
b.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows  

Remarks

You can use the object returned by this property to set the transport security settings for the binding.

Applies to