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


Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Returns the default BasicHttpBinding that the proxy classes will use.

Namespace:   Microsoft.Xrm.Sdk.WebServiceClient
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

protected static Binding GetBinding(
	Uri serviceUrl,
	TimeSpan timeout


Type: System.Uri

Type: URI. The URL of the web service.

Type: System.TimeSpan

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

Return Value

Type: System.ServiceModel.Channels.Binding

Type: Binding
The WCF channel binding.

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

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright