Share via


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

プロパティ値

トランスポートの URI スキームを表す UriSchemeHttp オブジェクト。

次の例では、バインドのスキームをコンソールに出力しています。

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

「The scheme of the binding is http」と出力されます。

注釈

このプロパティは、ベース アドレスに対してバインディングを検証するために使用されます。

適用対象