ServiceProxy.ShouldRetry Kaedah

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

Ruang nama: Microsoft.Xrm.Sdk.Client
Perhimpunan: Microsoft.Xrm.Sdk (dalam Microsoft.Xrm.Sdk.dll)

[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Justification="We want to explicitly call out that we only handle this exception.")] 
protected Nullable<bool> ShouldRetry (
	MessageSecurityException messageSecurityException,
	Nullable<bool> retry
)

Parameter

messageSecurityException

Type: MessageSecurityException. The exception to check.

retry

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.

Nilai Pulangan

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

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


Sebarang ahli statik awam (Shared dalam Visual Basic) jenis ini adalah selamat rentetan. Dalam apa jua keadaan, ahli tidak dijamin selamat rentetan.

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Windows Server 2008,Windows Server 2012,Windows 7

Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.
Tunjukkan: