WSHttpBindingBase.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

"http" if the security mode of the transport binding element is set to None or Message; "https" if the security mode is set otherwise.

This example shows how to get the maximum size for a message.

string scheme = binding1.Scheme;

.NET Framework
Available since 3.0
Return to top