Partager via


WebTestException, constructeur (String, Exception)

Initialise une nouvelle instance de la classe WebTestException avec un message d'erreur et une référence au Exception interne ayant provoqué cette exception.

Espace de noms :  Microsoft.VisualStudio.TestTools.WebTesting
Assembly :  Microsoft.VisualStudio.QualityTools.WebTestFramework (dans Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntaxe

'Déclaration
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
public WebTestException(
    string message,
    Exception innerException
)
public:
WebTestException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> WebTestException
public function WebTestException(
    message : String, 
    innerException : Exception
)

Paramètres

  • message
    Type : System.String
    Message d'erreur qui explique la raison de l'exception.
  • innerException
    Type : System.Exception
    Exception ayant provoqué l'exception en cours.

Sécurité .NET Framework

Voir aussi

Référence

WebTestException Classe

WebTestException, surcharge

Microsoft.VisualStudio.TestTools.WebTesting, espace de noms