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。」
備註
此特性用於驗證對基底位址的綁定。