HttpTransportBindingElement.Scheme 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取传输的 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。
注解
此属性用于验证针对基址的绑定。