語言

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。」

備註

此特性用於驗證對基底位址的綁定。

適用於