EndpointAddressBuilder 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 EndpointAddressBuilder 類別的新執行個體。
多載
EndpointAddressBuilder() |
初始化 EndpointAddressBuilder 類別的新執行個體。 |
EndpointAddressBuilder(EndpointAddress) |
從現有的端點位址來初始化 EndpointAddressBuilder 類別的新執行個體。 |
EndpointAddressBuilder()
初始化 EndpointAddressBuilder 類別的新執行個體。
public:
EndpointAddressBuilder();
public EndpointAddressBuilder ();
Public Sub New ()
範例
EndpointAddressBuilder eab = new EndpointAddressBuilder();
Dim eab As New EndpointAddressBuilder()
適用於
EndpointAddressBuilder(EndpointAddress)
從現有的端點位址來初始化 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。