Aracılığıyla paylaş


WebTestException Sınıf

Bir sınama çalıştırma sırasında ortaya çıkan hataların test altyapısı tarafından atılan özel durum.

Devralma Hiyerarşisi

Object
  Exception
    Microsoft.VisualStudio.TestTools.WebTesting.WebTestException
      Microsoft.VisualStudio.TestTools.WebTesting.ConditionalRuleException
      Microsoft.VisualStudio.TestTools.WebTesting.ConnectionFailedWebTestException
      Microsoft.VisualStudio.TestTools.WebTesting.WebTestEmptyTableException
      Microsoft.VisualStudio.TestTools.WebTesting.WebTestEndOfDataException
      Microsoft.VisualStudio.TestTools.WebTesting.WebTestStoppedException

Ad alanı:  Microsoft.VisualStudio.TestTools.WebTesting
Derleme:  Microsoft.VisualStudio.QualityTools.WebTestFramework (Microsoft.VisualStudio.QualityTools.WebTestFramework.dll içinde)

Sözdizimi

'Bildirim
<SerializableAttribute> _
Public Class WebTestException _
    Inherits Exception
[SerializableAttribute]
public class WebTestException : Exception
[SerializableAttribute]
public ref class WebTestException : public Exception
[<SerializableAttribute>]
type WebTestException =  
    class 
        inherit Exception 
    end
public class WebTestException extends Exception

WebTestException türü aşağıdaki üyeleri ortaya koyar.

Oluşturucular

  Ad Açıklama
Genel yöntem WebTestException() Yeni bir örneğini başlatır WebTestException sınıfı.
Genel yöntem WebTestException(String) Yeni bir örneğini başlatır WebTestException bir hata iletisiyle sınıfı.
Korumalı yöntem WebTestException(SerializationInfo, StreamingContext) Yeni bir örneğini başlatır WebTestException remoting senaryoları için sınıf.
Genel yöntem WebTestException(String, Exception) Yeni bir örneğini başlatır WebTestException bir hata iletisi ve iç başvuru sınıfla Exception bu özel duruma neden oldu.

Üst

Özellikler

  Ad Açıklama
Genel özellik Data Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Exception kaynağından devralındı.)
Genel özellik HelpLink Gets or sets a link to the help file associated with this exception. (Exception kaynağından devralındı.)
Korumalı özellik HResult Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Exception kaynağından devralındı.)
Genel özellik InnerException Gets the Exception instance that caused the current exception. (Exception kaynağından devralındı.)
Genel özellik Message Gets a message that describes the current exception. (Exception kaynağından devralındı.)
Genel özellik Source Gets or sets the name of the application or the object that causes the error. (Exception kaynağından devralındı.)
Genel özellik StackTrace Gets a string representation of the immediate frames on the call stack. (Exception kaynağından devralındı.)
Genel özellik TargetSite Gets the method that throws the current exception. (Exception kaynağından devralındı.)

Üst

Yöntemler

  Ad Açıklama
Genel yöntem Equals Determines whether the specified object is equal to the current object. (Object kaynağından devralındı.)
Korumalı yöntem Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Object kaynağından devralındı.)
Genel yöntem GetBaseException When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Exception kaynağından devralındı.)
Genel yöntem GetHashCode Serves as the default hash function. (Object kaynağından devralındı.)
Genel yöntem GetObjectData When overridden in a derived class, sets the SerializationInfo with information about the exception. (Exception kaynağından devralındı.)
Genel yöntem GetType Gets the runtime type of the current instance. (Exception kaynağından devralındı.)
Korumalı yöntem MemberwiseClone Creates a shallow copy of the current Object. (Object kaynağından devralındı.)
Genel yöntem ToString Creates and returns a string representation of the current exception. (Exception kaynağından devralındı.)

Üst

Notlar

Bu sınıf, seri hale getirilebilir.

İş Parçacığı Güvenliği

Bu türün tüm genel statik (Visual Basic'te Shared) üyeleri iş parçacığı açısından güvenlidir. Hiçbir örnek üyesinin iş parçacığı açısından güvenliği garanti edilemez.

Ayrıca bkz.

Başvuru

Microsoft.VisualStudio.TestTools.WebTesting Ad Alanı

Diğer Kaynaklar

Working with Web Tests