Freigeben über


CommandException-Konstruktor (String, Exception)

Initialisiert eine neue Instanz der CommandException-Klasse mit der bereitgestellten Meldung und inneren Ausnahme.

Namespace:  Microsoft.VisualStudio.TestTools.Exceptions
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

Syntax

'Declaration
Public Sub New ( _
    msg As String, _
    inner As Exception _
)
public CommandException(
    string msg,
    Exception inner
)
public:
CommandException(
    String^ msg, 
    Exception^ inner
)
new : 
        msg:string * 
        inner:Exception -> CommandException
public function CommandException(
    msg : String, 
    inner : Exception
)

Parameter

  • msg
    Typ: String

    Die Meldung, in der die Ausnahme beschrieben wird.

  • inner
    Typ: Exception

    Die Ausnahme, die die aktuelle Ausnahme verursacht hat.

.NET Framework-Sicherheit

Siehe auch

Referenz

CommandException Klasse

CommandException-Überladung

Microsoft.VisualStudio.TestTools.Exceptions-Namespace