HttpTransportBindingElement 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化类的新实例 HttpTransportBindingElement。
重载
| 名称 | 说明 |
|---|---|
| HttpTransportBindingElement() |
初始化 HttpTransportBindingElement 类的新实例。 |
| HttpTransportBindingElement(HttpTransportBindingElement) |
使用另一个绑定元素初始化类的新实例 HttpTransportBindingElement 。 |
HttpTransportBindingElement()
初始化 HttpTransportBindingElement 类的新实例。
public:
HttpTransportBindingElement();
public HttpTransportBindingElement();
Public Sub New ()
适用于
HttpTransportBindingElement(HttpTransportBindingElement)
使用另一个绑定元素初始化类的新实例 HttpTransportBindingElement 。
protected:
HttpTransportBindingElement(System::ServiceModel::Channels::HttpTransportBindingElement ^ elementToBeCloned);
protected HttpTransportBindingElement(System.ServiceModel.Channels.HttpTransportBindingElement elementToBeCloned);
new System.ServiceModel.Channels.HttpTransportBindingElement : System.ServiceModel.Channels.HttpTransportBindingElement -> System.ServiceModel.Channels.HttpTransportBindingElement
Protected Sub New (elementToBeCloned As HttpTransportBindingElement)
参数
- elementToBeCloned
- HttpTransportBindingElement
HttpTransportBindingElement用于初始化此实例的对象。
示例
以下示例演示如何在派生类中使用复制构造函数。
public class MyBindingElement : HttpTransportBindingElement
{
public MyBindingElement(MyBindingElement elementToBeCloned) : base(elementToBeCloned)
{
}
}
注解
此方法是用于克隆绑定的复制构造函数。