CommandException Konstruktoren
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| CommandException() |
Initialisiert eine neue Instanz der CommandException-Klasse. |
| CommandException(String) |
Initialisiert eine neue Instanz der- CommandException Klasse unter Verwendung der bereitgestellten Meldung. |
| CommandException(SerializationInfo, StreamingContext) |
Initialisiert eine neue Instanz der CommandException -Klasse unter Verwendung der bereitgestellten Informationen und des Kontexts. |
| CommandException(String, Exception) |
Initialisiert eine neue Instanz der CommandException -Klasse unter Verwendung der angegebenen Meldung und der angegebenen inneren Ausnahme. |
CommandException()
Initialisiert eine neue Instanz der CommandException-Klasse.
public:
CommandException();
public CommandException ();
Public Sub New ()
Gilt für
CommandException(String)
Initialisiert eine neue Instanz der- CommandException Klasse unter Verwendung der bereitgestellten Meldung.
public:
CommandException(System::String ^ msg);
public CommandException (string msg);
new Microsoft.VisualStudio.TestTools.Exceptions.CommandException : string -> Microsoft.VisualStudio.TestTools.Exceptions.CommandException
Public Sub New (msg As String)
Parameter
- msg
- String
Meldung, in der die Ausnahme beschrieben wird.
Gilt für
CommandException(SerializationInfo, StreamingContext)
Initialisiert eine neue Instanz der CommandException -Klasse unter Verwendung der bereitgestellten Informationen und des Kontexts.
protected:
CommandException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected CommandException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.Exceptions.CommandException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.Exceptions.CommandException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameter
- info
- SerializationInfo
Informationen über die Ausnahme.
- context
- StreamingContext
Die Quelle und das Ziel der Ausnahme.
Gilt für
CommandException(String, Exception)
Initialisiert eine neue Instanz der CommandException -Klasse unter Verwendung der angegebenen Meldung und der angegebenen inneren Ausnahme.
public:
CommandException(System::String ^ msg, Exception ^ inner);
public CommandException (string msg, Exception inner);
new Microsoft.VisualStudio.TestTools.Exceptions.CommandException : string * Exception -> Microsoft.VisualStudio.TestTools.Exceptions.CommandException
Public Sub New (msg As String, inner As Exception)
Parameter
- msg
- String
Meldung, in der die Ausnahme beschrieben wird.
- inner
- Exception
Eine Ausnahme, die die aktuelle Ausnahme verursacht hat.