VssNetworkHelper.IsTransientNetworkException 方法 (Exception, Nullable<HttpStatusCode>%, Nullable<WebExceptionStatus>%, Nullable<SocketError>%)

命名空间:  Microsoft.VisualStudio.Services.Common
程序集:  Microsoft.VisualStudio.Services.Common(在 Microsoft.VisualStudio.Services.Common.dll 中)

语法

声明
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
)

参数

返回值

类型:System.Boolean

.NET Framework 安全性

请参阅

参考

VssNetworkHelper 类

IsTransientNetworkException 重载

Microsoft.VisualStudio.Services.Common 命名空间