共用方式為


EndpointAddressBuilder 建構函式

定義

初始化 EndpointAddressBuilder 類別的新執行個體。

多載

EndpointAddressBuilder()

初始化 EndpointAddressBuilder 類別的新執行個體。

EndpointAddressBuilder(EndpointAddress)

從現有的端點位址來初始化 EndpointAddressBuilder 類別的新執行個體。

EndpointAddressBuilder()

來源:
EndpointAddress.cs
來源:
EndpointAddress.cs
來源:
EndpointAddress.cs

初始化 EndpointAddressBuilder 類別的新執行個體。

public:
 EndpointAddressBuilder();
public EndpointAddressBuilder ();
Public Sub New ()

範例

EndpointAddressBuilder eab = new EndpointAddressBuilder();
Dim eab As New EndpointAddressBuilder()

適用於

EndpointAddressBuilder(EndpointAddress)

來源:
EndpointAddress.cs
來源:
EndpointAddress.cs
來源:
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。

適用於