VssNetworkHelper.IsTransientNetworkException Method (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
)
public:
static bool IsTransientNetworkException(
Exception^ ex,
[OutAttribute] Nullable<HttpStatusCode>% httpStatusCode,
[OutAttribute] Nullable<WebExceptionStatus>% webExceptionStatus,
[OutAttribute] Nullable<SocketError>% socketErrorCode
)
static member IsTransientNetworkException :
ex:Exception *
httpStatusCode:Nullable<HttpStatusCode> byref *
webExceptionStatus:Nullable<WebExceptionStatus> byref *
socketErrorCode:Nullable<SocketError> byref -> bool
public static function IsTransientNetworkException(
ex : Exception,
httpStatusCode : Nullable<HttpStatusCode>,
webExceptionStatus : Nullable<WebExceptionStatus>,
socketErrorCode : Nullable<SocketError>
) : boolean
Parameters
- ex
Type: System.Exception
- httpStatusCode
Type: System.Nullable<HttpStatusCode>%
- webExceptionStatus
Type: System.Nullable<WebExceptionStatus>%
- socketErrorCode
Type: System.Nullable<SocketError>%
Return Value
Type: System.Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.