Compartir a través de


WebProxyClient<TService>.GetBinding(Uri, TimeSpan) Method

Definition

Returns the default BasicHttpBinding that the proxy classes will use.

protected:
 static System::ServiceModel::Channels::Binding ^ GetBinding(Uri ^ serviceUrl, TimeSpan timeout);
protected static System.ServiceModel.Channels.Binding GetBinding (Uri serviceUrl, TimeSpan timeout);
static member GetBinding : Uri * TimeSpan -> System.ServiceModel.Channels.Binding
Protected Shared Function GetBinding (serviceUrl As Uri, timeout As TimeSpan) As Binding

Parameters

serviceUrl
Uri

The URL of the web service.

timeout
TimeSpan

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

Returns

The WCF channel binding.

Remarks

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

Applies to