Metodo VssNetworkHelper.IsTransientNetworkException (Exception, Nullable<HttpStatusCode>%, Nullable<WebExceptionStatus>%, Nullable<SocketError>%)
Spazio dei nomi: Microsoft.VisualStudio.Services.Common
Assembly: Microsoft.VisualStudio.Services.Common (in Microsoft.VisualStudio.Services.Common.dll)
Sintassi
'Dichiarazione
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
)
Parametri
- ex
Tipo: System.Exception
- httpStatusCode
Tipo: System.Nullable<HttpStatusCode>%
- webExceptionStatus
Tipo: System.Nullable<WebExceptionStatus>%
- socketErrorCode
Tipo: System.Nullable<SocketError>%
Valore restituito
Tipo: System.Boolean
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.