Udostępnij za pośrednictwem


Klasa UITestException

Przedstawia podstawową klasę dla wszystkich wyjątków test interfejsu użytkownika.

Hierarchia dziedziczenia

Object
  Exception
    SystemException
      Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException
        Microsoft.VisualStudio.TestTools.UITest.Extension.DecodingFailedException
        Microsoft.VisualStudio.TestTools.UITest.Extension.InvalidUITestExtensionPackageException
        Microsoft.VisualStudio.TestTools.UITest.Extension.PlaybackFailureException
        Microsoft.VisualStudio.TestTools.UITest.Extension.TechnologyNotSupportedException
        Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotAvailableException
        Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException
        Microsoft.VisualStudio.TestTools.UITest.Extension.UITestJScriptExecutionException

Przestrzeń nazw:  Microsoft.VisualStudio.TestTools.UITest.Extension
Zestaw:  Microsoft.VisualStudio.TestTools.UITest.Extension (w Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Składnia

'Deklaracja
<SerializableAttribute> _
Public Class UITestException _
    Inherits SystemException
[SerializableAttribute]
public class UITestException : SystemException
[SerializableAttribute]
public ref class UITestException : public SystemException
[<SerializableAttribute>]
type UITestException =  
    class 
        inherit SystemException 
    end
public class UITestException extends SystemException

Typ UITestException uwidacznia następujące elementy członkowskie.

Konstruktorzy

  Nazwa Opis
Metoda publiczna UITestException() Inicjuje nowe wystąpienie klasy UITestException.
Metoda publiczna UITestException(String) Inicjuje nowe wystąpienie UITestException klasy przy użyciu wiadomości danego błędu.
Metoda chroniona UITestException(SerializationInfo, StreamingContext) Inicjuje nowe wystąpienie UITestException klasy do deserializacji wyjątek.
Metoda publiczna UITestException(String, Exception) Inicjuje nowe wystąpienie UITestException klasy przy użyciu dostarczonego wiadomości i wewnętrzny wyjątek.

Początek

Właściwości

  Nazwa Opis
Właściwość publiczna BasicMessage Pobiera wiadomość podstawowego błędu.
Właściwość publiczna Data Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Odziedziczone z Exception).
Właściwość chroniona DefaultMessage Po zastąpieniu w klasie pochodnej, pobiera komunikat domyślny typ określony wyjątek.
Właściwość publiczna ErrorInfo Pobiera lub ustawia informacje dotyczące akcji test interfejsu użytkownika, który spowodował wyjątek.
Właściwość publiczna ExceptionSource Pobiera lub ustawia formant, który jest źródłem tego wyjątku.
Właściwość publiczna HelpLink Gets or sets a link to the help file associated with this exception. (Odziedziczone z Exception).
Właściwość publiczna HResult Pobiera lub ustawia wartość HRESULT ten wyjątek.
Właściwość publiczna InnerException Gets the Exception instance that caused the current exception. (Odziedziczone z Exception).
Właściwość publiczna Message Pobiera wiadomość, która została podana podczas tworzenia tego obiektu wyjątek. (Zastępuje Exception.Message).
Właściwość publiczna Source Gets or sets the name of the application or the object that causes the error. (Odziedziczone z Exception).
Właściwość publiczna StackTrace Gets a string representation of the immediate frames on the call stack. (Odziedziczone z Exception).
Właściwość publiczna TargetSite Gets the method that throws the current exception. (Odziedziczone z Exception).

Początek

Metody

  Nazwa Opis
Metoda publiczna Equals Determines whether the specified object is equal to the current object. (Odziedziczone z Object).
Metoda chroniona Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Odziedziczone z Object).
Metoda publiczna GetBaseException When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Odziedziczone z Exception).
Metoda publiczna GetHashCode Serves as the default hash function. (Odziedziczone z Object).
Metoda publiczna GetObjectData Krytyczny pod względem zabezpieczeń When overridden in a derived class, sets the SerializationInfo with information about the exception. (Zastępuje Exception.GetObjectData(SerializationInfo, StreamingContext)).
Metoda publiczna GetType Gets the runtime type of the current instance. (Odziedziczone z Exception).
Metoda chroniona MemberwiseClone Creates a shallow copy of the current Object. (Odziedziczone z Object).
Metoda chroniona SetHResult Ustawia odpowiednie HRESULT ten wyjątek.
Metoda publiczna ToString Creates and returns a string representation of the current exception. (Odziedziczone z Exception).

Początek

Bezpieczeństwo wątku

Wszystkie publiczne static (Shared w języku Visual Basic) elementy członkowskie tego typu są bezpieczne dla wątków. Wystąpienia elementów członkowskich nie dają gwarancji bezpieczeństwa wątków.

Zobacz też

Informacje

Przestrzeń nazw Microsoft.VisualStudio.TestTools.UITest.Extension