Scheme Property
Collapse the table of content
Expand the table of content

HttpTransportBindingElement.Scheme Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the URI scheme for the transport.

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

public override string Scheme { get; }

Property Value

Type: System.String
Returns UriSchemeHttp.

This property is used to validate bindings against base addresses.

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


// Output http scheme.
string txtScheme = httpTransportBindingElement.Scheme;
txtOutput5.Text = txtScheme; //The value is http.


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft