ServiceContractGenerator.GenerateServiceEndpoint 方法

定義

從指定的 ServiceEndpoint 執行個體產生服務合約型別和端點組態。

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

參數

endpoint
ServiceEndpoint

用於產生合約型別的 ServiceEndpoint

channelElement
ChannelEndpointElement

產生的端點組態。

傳回

CodeTypeReference

產生的合約型別的 CodeTypeReference 執行個體。

備註

藉由使用 ServiceContractGenerator.Options 屬性,其他的程式碼成品也可依指定產生。

適用於