Share via


HttpTransportBindingElement.Scheme Proprietà

Definizione

Ottiene lo schema URI per il trasporto.

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

Valore della proprietà

Oggetto UriSchemeHttp che rappresenta lo schema URI per il trasporto.

Esempio

Nell'esempio seguente lo schema dell'associazione viene restituito alla console.

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

L'output è il seguente: "The scheme of the binding is http".

Commenti

Questa proprietà viene utilizzata per convalidare le associazioni rispetto agli indirizzi di base.

Si applica a