Sdílet prostřednictvím


ServiceContractGenerator.GenerateServiceEndpoint Metoda

Definice

Vygeneruje typ kontraktu služby a konfiguraci koncového bodu ze zadané ServiceEndpoint instance.

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

Parametry

endpoint
ServiceEndpoint

Slouží ServiceEndpoint k vygenerování typu kontraktu.

channelElement
ChannelEndpointElement

Vygenerovaná konfigurace koncového bodu.

Návraty

Instance CodeTypeReference pro vygenerovaný typ kontraktu.

Poznámky

Další artefakty kódu mohou být také generovány tak, jak je určeno pomocí ServiceContractGenerator.Options vlastnosti .

Platí pro