语言

HttpTransportBindingElement.Scheme 属性

定义

获取传输的 URI 方案。

public:
 virtual property System::String ^ Scheme { System::String ^ get(); };
public override string Scheme { get; }
member this.Scheme : string
Public Overrides ReadOnly Property Scheme As String

属性值

一个 UriSchemeHttp 对象,表示传输的 URI 方案。

示例

以下示例将绑定的方案输出到控制台。

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

输出为:“绑定的方案为 http。

注解

此属性用于验证针对基址的绑定。

适用于