ServiceConfiguration.AddServiceEndpoint Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Lägger till en tjänstslutpunkt i tjänstkonfigurationen.
Överlagringar
| Name | Description |
|---|---|
| AddServiceEndpoint(ServiceEndpoint) |
Lägger till den angivna tjänstslutpunkten i konfigurationstjänsten. |
| AddServiceEndpoint(Type, Binding, String) |
Lägger till en tjänstslutpunkt i konfigurationstjänsten med ett angivet kontrakt, bindning och slutpunktsadress. |
| AddServiceEndpoint(Type, Binding, Uri) |
Lägger till en tjänstslutpunkt i konfigurationstjänsten med ett angivet kontrakt, bindning och URI som innehåller slutpunktsadressen. |
| AddServiceEndpoint(Type, Binding, String, Uri) |
Lägger till en tjänstslutpunkt i konfigurationstjänsten med ett angivet kontrakt, bindning, slutpunktsadress och URI som innehåller adressen som den lyssnar på. |
| AddServiceEndpoint(Type, Binding, Uri, Uri) |
Lägger till en tjänstslutpunkt i konfigurationstjänsten med det angivna kontraktet, bindningen och URI:erna som innehåller slutpunkten och lyssnaradresserna. |
AddServiceEndpoint(ServiceEndpoint)
Lägger till den angivna tjänstslutpunkten i konfigurationstjänsten.
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)
Parametrar
- endpoint
- ServiceEndpoint
Tjänstens slutpunkt.
Gäller för
AddServiceEndpoint(Type, Binding, String)
Lägger till en tjänstslutpunkt i konfigurationstjänsten med ett angivet kontrakt, bindning och slutpunktsadress.
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
Parametrar
- contractType
- Type
Typ av kontrakt för slutpunkten som lagts till.
- binding
- Binding
Bindningen för slutpunkten har lagts till.
- address
- String
Adressen för slutpunkten har lagts till.
Returer
Tjänstslutpunkten har lagts till i konfigurationstjänsten.
Gäller för
AddServiceEndpoint(Type, Binding, Uri)
Lägger till en tjänstslutpunkt i konfigurationstjänsten med ett angivet kontrakt, bindning och URI som innehåller slutpunktsadressen.
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
Parametrar
- contractType
- Type
Typ av kontrakt för slutpunkten som lagts till.
- binding
- Binding
Bindningen för slutpunkten har lagts till.
- address
- Uri
Den URI som innehåller adressen för slutpunkten som lagts till.
Returer
Tjänstslutpunkten har lagts till i konfigurationstjänsten.
Gäller för
AddServiceEndpoint(Type, Binding, String, Uri)
Lägger till en tjänstslutpunkt i konfigurationstjänsten med ett angivet kontrakt, bindning, slutpunktsadress och URI som innehåller adressen som den lyssnar på.
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
Parametrar
- contractType
- Type
Typen av kontrakt som implementerats av slutpunkten.
- binding
- Binding
Bindningen för slutpunkten har lagts till.
- address
- String
Adressen för slutpunkten har lagts till.
- listenUri
- Uri
Den URI som innehåller den adress som slutpunkten lyssnar efter inkommande meddelanden.
Returer
Tjänstslutpunkten har lagts till i konfigurationstjänsten.
Gäller för
AddServiceEndpoint(Type, Binding, Uri, Uri)
Lägger till en tjänstslutpunkt i konfigurationstjänsten med det angivna kontraktet, bindningen och URI:erna som innehåller slutpunkten och lyssnaradresserna.
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
Parametrar
- contractType
- Type
Typen av kontrakt som implementerats av slutpunkten.
- binding
- Binding
Bindningen för slutpunkten har lagts till.
- address
- Uri
Den URI som innehåller adressen för slutpunkten som lagts till.
- listenUri
- Uri
Den URI som innehåller adressen där slutpunkten lyssnar efter inkommande meddelanden.
Returer
Tjänstslutpunkten har lagts till i konfigurationstjänsten.