VssNetworkHelper.IsTransientNetworkException-Methode (Exception, Nullable<HttpStatusCode>%, Nullable<WebExceptionStatus>%, Nullable<SocketError>%)
Namespace: Microsoft.VisualStudio.Services.Common
Assembly: Microsoft.VisualStudio.Services.Common (in Microsoft.VisualStudio.Services.Common.dll)
Syntax
'Declaration
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
)
Parameter
- ex
Typ: System.Exception
- httpStatusCode
Typ: System.Nullable<HttpStatusCode>%
- webExceptionStatus
Typ: System.Nullable<WebExceptionStatus>%
- socketErrorCode
Typ: System.Nullable<SocketError>%
Rückgabewert
Typ: System.Boolean
.NET Framework-Sicherheit
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter Verwenden von Bibliotheken aus teilweise vertrauenswürdigem Code.