Udostępnij przez


WSHttpBindingBase.CreateBindingElements Metoda

Definicja

Zwraca uporządkowaną kolekcję elementów powiązania zawartych w bieżącym powiązaniu.

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

Obiekt BindingElementCollection zawierający BindingElement obiekty powiązania.

Przykłady

W tym przykładzie pokazano, jak uzyskać maksymalny rozmiar komunikatu.

BindingElementCollection bindingElements =
        binding1.CreateBindingElements();
Dim bindingElements As BindingElementCollection = binding1.CreateBindingElements()

Uwagi

Kolejność elementów powiązania jest ważna. Odzwierciedla on kolejność, w jakiej protokoły i kanały transportowe są konstruowane i ułożone.

Dotyczy