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 для созданного типа контракта.

Комментарии

Также могут создаваться другие артефакты кода, заданные использованием свойства ServiceContractGenerator.Options.

Применяется к