WSFederationHttpBinding.CreateBindingElements Metoda

Definicja

Tworzy kolekcję z elementami powiązania dla powiązania.

public:
 override System::ServiceModel::Channels::BindingElementCollection ^ CreateBindingElements();
public override System.ServiceModel.Channels.BindingElementCollection CreateBindingElements ();
override this.CreateBindingElements : unit -> System.ServiceModel.Channels.BindingElementCollection
Public Overrides Function CreateBindingElements () As BindingElementCollection

Zwraca

BindingElement Typ ICollection<T> tworzący powiązanie.

Uwagi

Stos elementów powiązania zależy od wartości WSFederationHttpSecurityMode zestawu.

Stos elementów powiązania w pliku WSFederationHttpBinding jest taki sam, jak WSHttpBinding w przypadku, gdy Security jest ustawiony na wartość domyślną Message.

  1. TransactionFlowBindingElement

  2. SymmetricSecurityBindingElement

  3. TextMessageEncodingBindingElement

  4. HttpTransportBindingElement

Jednak ustawienie wartości WSFederationHttpSecurityMode powoduje TransportWithMessageCredential utworzenie stosu, który jest czymś w rodzaju hybrydowego WSHttpBinding między powiązaniami i BasicHttpBinding .

  1. TransactionFlowBindingElement

  2. TransportSecurityBindingElement

  3. TextMessageEncodingBindingElement

  4. HttpsTransportBindingElement

Na koniec użycie kodera MTOM wygląda dokładnie tak samo jak w przypadku WSHttpBindingelementu .

  1. TransactionFlowBindingElement

  2. MtomMessageEncodingBindingElement

  3. HttpTransportBindingElement

Dotyczy