Share via


ServiceContractGenerator.GenerateServiceEndpoint Méthode

Définition

Génère un type de contrat de service et une configuration de point de terminaison à partir de l'instance ServiceEndpoint spécifiée.

public:
 System::CodeDom::CodeTypeReference ^ GenerateServiceEndpoint(System::ServiceModel::Description::ServiceEndpoint ^ endpoint, [Runtime::InteropServices::Out] System::ServiceModel::Configuration::ChannelEndpointElement ^ % channelElement);
public System.CodeDom.CodeTypeReference GenerateServiceEndpoint (System.ServiceModel.Description.ServiceEndpoint endpoint, out System.ServiceModel.Configuration.ChannelEndpointElement channelElement);
member this.GenerateServiceEndpoint : System.ServiceModel.Description.ServiceEndpoint * ChannelEndpointElement -> System.CodeDom.CodeTypeReference
Public Function GenerateServiceEndpoint (endpoint As ServiceEndpoint, ByRef channelElement As ChannelEndpointElement) As CodeTypeReference

Paramètres

endpoint
ServiceEndpoint

ServiceEndpoint à utiliser pour générer le type de contrat.

channelElement
ChannelEndpointElement

Configuration de point de terminaison générée.

Retours

Instance CodeTypeReference du type de contrat généré.

Remarques

D'autres artefacts de code peuvent également être générés tel que spécifié en utilisant la propriété ServiceContractGenerator.Options.

S’applique à