Partager via


VssNetworkHelper.IsTransientNetworkException, méthode (Exception, Nullable<HttpStatusCode>%, Nullable<WebExceptionStatus>%, Nullable<SocketError>%)

Espace de noms :  Microsoft.VisualStudio.Services.Common
Assembly :  Microsoft.VisualStudio.Services.Common (dans Microsoft.VisualStudio.Services.Common.dll)

Syntaxe

'Déclaration
Public Shared Function IsTransientNetworkException ( _
    ex As Exception, _
    <OutAttribute> ByRef httpStatusCode As Nullable(Of HttpStatusCode), _
    <OutAttribute> ByRef webExceptionStatus As Nullable(Of WebExceptionStatus), _
    <OutAttribute> ByRef socketErrorCode As Nullable(Of SocketError) _
) As Boolean
public static bool IsTransientNetworkException(
    Exception ex,
    out Nullable<HttpStatusCode> httpStatusCode,
    out Nullable<WebExceptionStatus> webExceptionStatus,
    out Nullable<SocketError> socketErrorCode
)

Paramètres

Valeur de retour

Type : System.Boolean

Sécurité .NET Framework

Voir aussi

Référence

VssNetworkHelper Classe

IsTransientNetworkException, surcharge

Microsoft.VisualStudio.Services.Common, espace de noms