EndpointAddressBuilder 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 EndpointAddressBuilder 类的新实例。
重载
EndpointAddressBuilder() |
初始化 EndpointAddressBuilder 类的新实例。 |
EndpointAddressBuilder(EndpointAddress) |
从现有的终结点地址初始化 EndpointAddressBuilder 类的新实例。 |
EndpointAddressBuilder()
- Source:
- EndpointAddress.cs
- Source:
- EndpointAddress.cs
- Source:
- EndpointAddress.cs
初始化 EndpointAddressBuilder 类的新实例。
public:
EndpointAddressBuilder();
public EndpointAddressBuilder ();
Public Sub New ()
示例
EndpointAddressBuilder eab = new EndpointAddressBuilder();
Dim eab As New EndpointAddressBuilder()
适用于
EndpointAddressBuilder(EndpointAddress)
- Source:
- EndpointAddress.cs
- Source:
- EndpointAddress.cs
- Source:
- EndpointAddress.cs
从现有的终结点地址初始化 EndpointAddressBuilder 类的新实例。
public:
EndpointAddressBuilder(System::ServiceModel::EndpointAddress ^ address);
public EndpointAddressBuilder (System.ServiceModel.EndpointAddress address);
new System.ServiceModel.EndpointAddressBuilder : System.ServiceModel.EndpointAddress -> System.ServiceModel.EndpointAddressBuilder
Public Sub New (address As EndpointAddress)
参数
- address
- EndpointAddress
EndpointAddress,其属性值用于初始化此实例的属性值。
例外
address
为 null
。
示例
EndpointAddress endpointAddress = new EndpointAddress("http://localhost/uri2");
EndpointAddressBuilder eab2 = new EndpointAddressBuilder(endpointAddress);
Dim endpointAddress As New EndpointAddress("http://localhost/uri2")
Dim eab2 As New EndpointAddressBuilder(endpointAddress)
注解
从终结点地址为终结点生成器初始化的值包括:终结点地址本身、标识、标头以及 URI。