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);  

輸出為:"The scheme of the binding is http"。

備註

這個屬性可用於針對基底位址驗證繫結。

適用於