VssNetworkHelper.IsTransientNetworkException Yöntem (Exception, Nullable<HttpStatusCode>%, Nullable<WebExceptionStatus>%, Nullable<SocketError>%)
Ad alanı: Microsoft.VisualStudio.Services.Common
Derleme: Microsoft.VisualStudio.Services.Common (Microsoft.VisualStudio.Services.Common.dll içinde)
Sözdizimi
'Bildirim
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
)
Parametreler
- ex
Tür: System.Exception
- httpStatusCode
Tür: System.Nullable<HttpStatusCode>%
- webExceptionStatus
Tür: System.Nullable<WebExceptionStatus>%
- socketErrorCode
Tür: System.Nullable<SocketError>%
Dönüş Değeri
Tür: System.Boolean
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen Güvenilen Koddan Kitaplıkları Kullanma.