BasicHttpBinding.Scheme Property

Definition

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

C#
public override string Scheme { get; }

Property Value

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

Examples

The following example gets the current Scheme.

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

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0