Поделиться через


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

 

Applies To: Dynamics CRM 2015

Returns the default BasicHttpBinding that the proxy classes will use.

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

Syntax

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

Parameters

  • serviceUrl
    Type: System.Uri

    Type: URI. The URL of the web service.

  • timeout
    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.

Remarks

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

See Also

WebProxyClient<TService> Class
Microsoft.Xrm.Sdk.WebServiceClient Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright