BasicHttpContextBinding.CreateBindingElements 方法

定义

创建一个包含在当前绑定中的已排序的绑定元素集合。Creates an ordered collection of binding elements that are 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

返回

BindingElementCollection

包含已排序的绑定元素堆栈的 BindingElementCollection,这些绑定元素由 BasicHttpContextBinding 描述。A BindingElementCollection that contains the ordered stack of binding elements described by the BasicHttpContextBinding.

注解

该集合包含 ContextBindingElement,从而可以在未启用 HTTP Cookie 时使用 SOAP 标头来交换上下文;否则使用 HTTP Cookie 交换上下文。The collection contains the ContextBindingElement that enables SOAP headers to be used to exchange context when HTTP cookies are not enabled; otherwise use HTTP cookies to exchange context.

适用于