WSHttpBinding.CreateBindingElements Método

Definición

Devuelve una colección ordenada de los elementos de enlace contenidos en el enlace actual.Returns an ordered collection of binding elements contained in the current binding.

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

Devoluciones

BindingElementCollection

BindingElementCollection que contiene la pila ordenada de elementos de enlace descritos por el enlace WSHttpBinding.The BindingElementCollection that contains the ordered stack of binding elements described by the WSHttpBinding binding.

Excepciones

El conjunto de modo de seguridad de transporte no puede proporcionar la sesión confiable que se ha habilitado.The transport security mode set cannot provide the reliable session that has been enabled.

Ejemplos

El siguiente ejemplo muestra cómo obtener la BindingElementCollection que contiene la pila ordenada de elementos de enlace descritos por el enlace WSHttpBinding.The following example shows how to obtain the BindingElementCollection that contains the ordered stack of binding elements described by WSHttpBinding binding.

WSHttpBinding wsHttpBinding = new WSHttpBinding();
BindingElementCollection beCollection = wsHttpBinding.CreateBindingElements();
Dim wsHttpBinding As New WSHttpBinding()
Dim beCollection As BindingElementCollection = wsHttpBinding.CreateBindingElements()

Comentarios

El orden de los elementos de enlace es importante.The order of the binding elements is important. Refleja el orden en que el protocolo y los canales de transporte se construyen y apilan.It reflects the order in which the protocol and transport channels are constructed and stacked.

Se aplica a