EndpointAddressBuilder 构造函数

定义

初始化 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,其属性值用于初始化此实例的属性值。

例外

addressnull

示例

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。

适用于