Udostępnij za pośrednictwem


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

Typ ICollection<T>BindingElement 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 powoduje WSFederationHttpSecurityModeTransportWithMessageCredential utworzenie stosu, który jest czymś hybrydowym między WSHttpBinding 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 elementu WSHttpBinding.

  1. TransactionFlowBindingElement

  2. MtomMessageEncodingBindingElement

  3. HttpTransportBindingElement

Dotyczy