共用方式為


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 命名空間