Partilhar via


WebProxyClient<TService>.CreateServiceEndpoint Method

Definition

Creates the service endpoint required for the proxy and adds support for early-bound types in the provided assembly.

protected:
 static System::ServiceModel::Description::ServiceEndpoint ^ CreateServiceEndpoint(Uri ^ serviceUrl, bool useStrongTypes, TimeSpan timeout, System::Reflection::Assembly ^ strongTypeAssembly);
protected static System.ServiceModel.Description.ServiceEndpoint CreateServiceEndpoint (Uri serviceUrl, bool useStrongTypes, TimeSpan timeout, System.Reflection.Assembly strongTypeAssembly);
static member CreateServiceEndpoint : Uri * bool * TimeSpan * System.Reflection.Assembly -> System.ServiceModel.Description.ServiceEndpoint
Protected Shared Function CreateServiceEndpoint (serviceUrl As Uri, useStrongTypes As Boolean, timeout As TimeSpan, strongTypeAssembly As Assembly) As ServiceEndpoint

Parameters

serviceUrl
Uri

The URL of the web service.

useStrongTypes
Boolean

When true, use early-bound types; otherwise, false.

timeout
TimeSpan

The maximum amount of time a single channel operation has to complete before a timeout fault is raised on a service channel binding.

strongTypeAssembly
Assembly

An assembly containing early-bound types.

Returns

A web service endpoint.

Remarks

The timeout is passed to the SendTimeout, ReceiveTimeout, and OpenTimeout properties on the WCF channel binding.

Applies to