ServiceConfiguration.AddServiceEndpoint Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a service endpoint to the service configuration.
Overloads
AddServiceEndpoint(ServiceEndpoint) |
Adds the specified service endpoint to the configuration service. |
AddServiceEndpoint(Type, Binding, String) |
Adds a service endpoint to the configuration service with a specified contract, binding, and endpoint address. |
AddServiceEndpoint(Type, Binding, Uri) |
Adds a service endpoint to the configuration service with a specified contract, binding, and URI that contains the endpoint address. |
AddServiceEndpoint(Type, Binding, String, Uri) |
Adds a service endpoint to the configuration service with a specified contract, binding, endpoint address and URI that contains the address at which it listens. |
AddServiceEndpoint(Type, Binding, Uri, Uri) |
Adds a service endpoint to the configuration service with the specified contract, binding, and URIs that contain the endpoint and listening addresses. |
AddServiceEndpoint(ServiceEndpoint)
Adds the specified service endpoint to the configuration service.
public:
void AddServiceEndpoint(System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
public void AddServiceEndpoint (System.ServiceModel.Description.ServiceEndpoint endpoint);
member this.AddServiceEndpoint : System.ServiceModel.Description.ServiceEndpoint -> unit
Public Sub AddServiceEndpoint (endpoint As ServiceEndpoint)
Parameters
- endpoint
- ServiceEndpoint
The service endpoint.
Applies to
AddServiceEndpoint(Type, Binding, String)
Adds a service endpoint to the configuration service with a specified contract, binding, and endpoint address.
public:
System::ServiceModel::Description::ServiceEndpoint ^ AddServiceEndpoint(Type ^ contractType, System::ServiceModel::Channels::Binding ^ binding, System::String ^ address);
public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (Type contractType, System.ServiceModel.Channels.Binding binding, string address);
member this.AddServiceEndpoint : Type * System.ServiceModel.Channels.Binding * string -> System.ServiceModel.Description.ServiceEndpoint
Public Function AddServiceEndpoint (contractType As Type, binding As Binding, address As String) As ServiceEndpoint
Parameters
- contractType
- Type
The type of contract for the endpoint added.
- binding
- Binding
The binding for the endpoint added.
- address
- String
The address for the endpoint added.
Returns
The service endpoint added to the configuration service.
Applies to
AddServiceEndpoint(Type, Binding, Uri)
Adds a service endpoint to the configuration service with a specified contract, binding, and URI that contains the endpoint address.
public:
System::ServiceModel::Description::ServiceEndpoint ^ AddServiceEndpoint(Type ^ contractType, System::ServiceModel::Channels::Binding ^ binding, Uri ^ address);
public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (Type contractType, System.ServiceModel.Channels.Binding binding, Uri address);
member this.AddServiceEndpoint : Type * System.ServiceModel.Channels.Binding * Uri -> System.ServiceModel.Description.ServiceEndpoint
Public Function AddServiceEndpoint (contractType As Type, binding As Binding, address As Uri) As ServiceEndpoint
Parameters
- contractType
- Type
The type of contract for the endpoint added.
- binding
- Binding
The binding for the endpoint added.
- address
- Uri
The Uri that contains the address for the endpoint added.
Returns
The service endpoint added to the configuration service.
Applies to
AddServiceEndpoint(Type, Binding, String, Uri)
Adds a service endpoint to the configuration service with a specified contract, binding, endpoint address and URI that contains the address at which it listens.
public:
System::ServiceModel::Description::ServiceEndpoint ^ AddServiceEndpoint(Type ^ contractType, System::ServiceModel::Channels::Binding ^ binding, System::String ^ address, Uri ^ listenUri);
public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (Type contractType, System.ServiceModel.Channels.Binding binding, string address, Uri listenUri);
member this.AddServiceEndpoint : Type * System.ServiceModel.Channels.Binding * string * Uri -> System.ServiceModel.Description.ServiceEndpoint
Public Function AddServiceEndpoint (contractType As Type, binding As Binding, address As String, listenUri As Uri) As ServiceEndpoint
Parameters
- contractType
- Type
The type of contract implemented by the endpoint.
- binding
- Binding
The binding for the endpoint added.
- address
- String
The address for the endpoint added.
- listenUri
- Uri
The URI that contains the address which the endpoint listens for incoming messages.
Returns
The service endpoint added to the configuration service.
Applies to
AddServiceEndpoint(Type, Binding, Uri, Uri)
Adds a service endpoint to the configuration service with the specified contract, binding, and URIs that contain the endpoint and listening addresses.
public:
System::ServiceModel::Description::ServiceEndpoint ^ AddServiceEndpoint(Type ^ contractType, System::ServiceModel::Channels::Binding ^ binding, Uri ^ address, Uri ^ listenUri);
public System.ServiceModel.Description.ServiceEndpoint AddServiceEndpoint (Type contractType, System.ServiceModel.Channels.Binding binding, Uri address, Uri listenUri);
member this.AddServiceEndpoint : Type * System.ServiceModel.Channels.Binding * Uri * Uri -> System.ServiceModel.Description.ServiceEndpoint
Public Function AddServiceEndpoint (contractType As Type, binding As Binding, address As Uri, listenUri As Uri) As ServiceEndpoint
Parameters
- contractType
- Type
The type of contract implemented by the endpoint.
- binding
- Binding
The binding for the endpoint added.
- address
- Uri
The Uri that contains the address for the endpoint added.
- listenUri
- Uri
The Uri that contains the address at which the endpoint listens for incoming messages.
Returns
The service endpoint added to the configuration service.