HttpTransportBindingElement.Scheme Property


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

Gets the URI scheme for the transport.

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

Public Overrides ReadOnly Property Scheme As String

Property Value

Type: System.String

A UriSchemeHttp object that represents the URI scheme for the transport.

This property is used to validate bindings against base addresses.

The following example outputs the scheme of the binding to the console.


HttpTransportBindingElement httpBinding = new HttpTransportBindingElement();
Console.WriteLine("The scheme of the binding is {0}.",httpBinding.Scheme);

The output is: "The scheme of the binding is http."

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top