Share via


ChannelEndpointElement 建構函式

定義

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

多載

ChannelEndpointElement()

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

ChannelEndpointElement(EndpointAddress, String)

使用指定的端點位址和合約型別,初始化 ChannelEndpointElement 類別的新執行個體。

ChannelEndpointElement()

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

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

適用於

ChannelEndpointElement(EndpointAddress, String)

使用指定的端點位址和合約型別,初始化 ChannelEndpointElement 類別的新執行個體。

public:
 ChannelEndpointElement(System::ServiceModel::EndpointAddress ^ address, System::String ^ contractType);
public ChannelEndpointElement (System.ServiceModel.EndpointAddress address, string contractType);
new System.ServiceModel.Configuration.ChannelEndpointElement : System.ServiceModel.EndpointAddress * string -> System.ServiceModel.Configuration.ChannelEndpointElement
Public Sub New (address As EndpointAddress, contractType As String)

參數

address
EndpointAddress

指定端點的位址。 預設為空字串。 位址必須是絕對 URI。

contractType
String

指示這個端點要公開 (Expose) 之合約的字串。 組件必須實作合約類型。

適用於