ChannelEndpointElement 构造函数

定义

初始化 ChannelEndpointElement 类的新实例。Initializes a new instance of the ChannelEndpointElement class.

重载

ChannelEndpointElement()

初始化 ChannelEndpointElement 类的新实例。Initializes a new instance of the ChannelEndpointElement class.

ChannelEndpointElement(EndpointAddress, String)

使用指定的终结点地址和协定类型初始化 ChannelEndpointElement 类的新实例。Initializes a new instance of the ChannelEndpointElement class with the specified endpoint address and contract type.

ChannelEndpointElement()

初始化 ChannelEndpointElement 类的新实例。Initializes a new instance of the ChannelEndpointElement class.

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

适用于

ChannelEndpointElement(EndpointAddress, String)

使用指定的终结点地址和协定类型初始化 ChannelEndpointElement 类的新实例。Initializes a new instance of the ChannelEndpointElement class with the specified endpoint address and contract type.

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

指定终结点的地址。Specifies the address of the endpoint. 默认值为一个空字符串。The default is an empty string. 该地址必须为绝对 URI。The address must be an absolute URI.

contractType
String

一个字符串,指示此终结点公开了哪个协定。A string that indicates which contract this endpoint is exposing. 程序集必须实现该协定类型。The assembly must implement the contract type.

适用于