Share via


ServiceContractGenerator.GenerateServiceEndpoint Método

Definição

Gera um tipo de contrato de serviço e uma configuração de ponto de extremidade da instância de ServiceEndpoint especificada.

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

Parâmetros

endpoint
ServiceEndpoint

O ServiceEndpoint a usar para gerar o tipo de contrato.

channelElement
ChannelEndpointElement

A configuração de ponto de extremidade gerada.

Retornos

CodeTypeReference

Uma instância de CodeTypeReference para o tipo de contrato gerado.

Comentários

Outros artefatos de código também podem ser gerados conforme especificado usando a ServiceContractGenerator.Options propriedade.

Aplica-se a