WSHttpSecurity.Transport Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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

public HttpTransportSecurity Transport { get; set; }

Property Value

Type: System.ServiceModel.HttpTransportSecurity

The HttpTransportSecurity for this binding.

The default value includes a ClientCredentialType of None and a ProxyCredentialType of None.

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

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;

.NET Framework
Available since 3.0
Return to top