BasicHttpBinding.Scheme Property

Gets the URI transport scheme for the channels and listeners that are configured with this binding.

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

public override string Scheme { get; }

Property Value

Type: System.String
"https" if the security mode in the transport binding element is set to Transport or TransportWithMessageCredential; "http" otherwise.

The following example gets the current Scheme.

                BasicHttpBinding binding = new BasicHttpBinding();
		string thisScheme = binding.Scheme;

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library