BasicHttpBinding.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

プロパティ値

トランスポート バインド要素のセキュリティ モードが Transport または TransportWithMessageCredential に設定されている場合は "https"。それ以外の場合は "http" です。

次の例では、現在のスキームを取得します。

BasicHttpBinding binding = new BasicHttpBinding();
string thisScheme = binding.Scheme;

適用対象