HttpTransportBindingElement::Scheme Property

 

Gets the URI scheme for the transport.

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

public:
property String^ Scheme {
	virtual String^ get() override;
}

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.

[C#]

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
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: