Dela via


ServiceProxy<TService>.ShouldRetry Method (MessageSecurityException, Nullable<Boolean>)

 

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

Checks a message security exception to determine if a service call should be attempted again.

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

Syntax

protected Nullable<bool> ShouldRetry(
    MessageSecurityException messageSecurityException,
    Nullable<bool> retry
)
Protected Function ShouldRetry (
    messageSecurityException As MessageSecurityException,
    retry As Nullable(Of Boolean)
) As Nullable(Of Boolean)

Parameters

  • retry
    Type: System.Nullable<Boolean>

    Type: Nullable<Boolean>. null if this is the first time the check is performed; otherwise, this is the second time and a retry should not be performed.

Return Value

Type: System.Nullable<Boolean>

Type: Nullable<Boolean>
true if the service call should be tried again; otherwise, false or null.

Remarks

This particular type of exception occurs in Active Directory environments or sometimes when Internet Information Services (IIS) is reset.

See Also

ServiceProxy<TService> Class
Microsoft.Xrm.Sdk.Client Namespace

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright