Język

HttpTransportBindingElement.Scheme Właściwość

Definicja

Pobiera schemat identyfikatora URI dla transportu.

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

Wartość właściwości

UriSchemeHttp Obiekt reprezentujący schemat identyfikatora URI dla transportu.

Przykłady

Poniższy przykład generuje schemat powiązania z konsolą.

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

Dane wyjściowe to: "Schemat powiązania to http".

Uwagi

Ta właściwość służy do sprawdzania poprawności powiązań względem adresów bazowych.

Dotyczy